Skip to content

Commit

Permalink
Added exception to testing workflow for version branches and added wa…
Browse files Browse the repository at this point in the history
…tch step for GitHub checks during PR merge process in build workflow
  • Loading branch information
DCMattyG committed Feb 28, 2024
1 parent 8d42640 commit 2dfbee5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/azure-ipam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ run-name: Azure IPAM Production Container Build

on:
push:
branches: [ main ]
branches:
- main

permissions:
id-token: write
Expand Down Expand Up @@ -127,7 +128,8 @@ jobs:
prNumber: ${{ needs.version.outputs.prNumber }}
run: |
gh pr create --base main --head "ipam-version-${prNumber}" --title "Update Azure IPAM Version" --body "-Updated Version to v${{ needs.version.outputs.ipamVersion }}"
gh pr merge "ipam-version-${prNumber}" -t "Merge pull request from Azure/ipam-version-${prNumber} [skip ci]" -m
gh pr checks "ipam-version-${prNumber}" --watch
gh pr merge "ipam-version-${prNumber}" -t "Merge pull request from Azure/ipam-version-${prNumber} [skip ci]" -m -d
- name: Pull Merged Code from Main Branch
id: pullMainCode
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/azure-ipam-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ run-name: Azure IPAM Deployment & Testing

on:
pull_request:
branches: [ main ]
branches:
- main
- '!ipam-version-*'

env:
ACR_NAME: ${{ vars.IPAM_TEST_ACR }}
Expand Down

0 comments on commit 2dfbee5

Please sign in to comment.