Skip to content

Commit

Permalink
Added missing login step to git flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Garrett committed Feb 26, 2024
1 parent ca9cd70 commit b837c76
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/azure-ipam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:

- name: Checkout Azure IPAM Code
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/github-script@v7
id: getPullRequestData
Expand All @@ -46,6 +44,20 @@ jobs:
})
).data[0];
- name: Configure Git
id: configureGit
run: |
git config --global user.name "IPAM GitHub Actions"
git config --global user.email "[email protected]"
- name: Create Temporary Branch
id: createBranch
env:
branchSuffix: ${{ steps.getPullRequestData.outputs.result.number }}
run: |
git checkout -b ipam-version-${branchSuffix}
git push origin ipam-version-${branchSuffix}
- name: "Increment Azure IPAM Version"
id: updateVersion
working-directory: tools
Expand Down Expand Up @@ -78,7 +90,8 @@ jobs:
- name: Install NPM Packages
id: installNpmPackages
working-directory: ui
run: npm install
run: |
npm install
- name: "Create Azure IPAM ZIP Asset"
id: buildZipAsset
Expand All @@ -89,11 +102,11 @@ jobs:
- name: Commit Updated Azure IPAM Code
id: commitCode
env:
branchSuffix: ${{ steps.getPullRequestData.outputs.result.number }}
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git commit -a -m "Updated Azure IPAM Version"
git push
git push origin ipam-version-${branchSuffix}
release:
name: Create Azure IPAM Release
Expand Down Expand Up @@ -126,8 +139,8 @@ jobs:
run: |
gh release upload "$tagName" "$assetPath"
update:
name: Update Azure IPAM Containers
build:
name: Build Azure IPAM Containers
runs-on: ubuntu-latest
needs: [ version, release ]
steps:
Expand Down

0 comments on commit b837c76

Please sign in to comment.