11# This GitHub Workflow is designed to run automatically after the Release PR, which was created by the `Create Release PR` workflow, is closed.
22# This workflow has 2 jobs. One will run if the `Release PR` is successfully merged, indicating that a release should go out.
33# The other will run if the `Release PR` was closed and a release is not intended to go out.
4- name : Sync 'v4sdk-development ' and 'v4sdk-release '
4+ name : Sync 'dev ' and 'main '
55
66# The workflow will automatically be triggered when any PR is closed.
77on :
@@ -13,15 +13,15 @@ permissions:
1313 id-token : write
1414
1515jobs :
16- # This job will check if the PR was successfully merged, it's source branch is `releases/next-release` and target branch is `v4sdk-development `.
16+ # This job will check if the PR was successfully merged, it's source branch is `releases/next-release` and target branch is `dev `.
1717 # This indicates that the merged PR was the `Release PR`.
18- # This job will synchronize `v4sdk-development ` and `v4sdk-release `, create a GitHub Release and delete the `releases/next-release` branch.
18+ # This job will synchronize `dev ` and `main `, create a GitHub Release and delete the `releases/next-release` branch.
1919 sync-dev-and-main :
20- name : Sync v4sdk-development and v4sdk-release
20+ name : Sync dev and main
2121 if : |
2222 github.event.pull_request.merged == true &&
2323 github.event.pull_request.head.ref == 'releases/next-release' &&
24- github.event.pull_request.base.ref == 'v4sdk-development '
24+ github.event.pull_request.base.ref == 'dev '
2525 runs-on : ubuntu-latest
2626 steps :
2727 # Assume an AWS Role that provides access to the Access Token
4141 - name : Checkout code
4242 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4343 with :
44- ref : v4sdk-development
44+ ref : dev
4545 fetch-depth : 0
4646 token : ${{ env.AWS_SECRET_TOKEN }}
4747 # Install .NET8 which is needed for AutoVer
5151 dotnet-version : 8.0.x
5252 # Install AutoVer which is needed to retrieve information about the current release.
5353 - name : Install AutoVer
54- run : dotnet tool install --global AutoVer --version 0.0.21
54+ run : dotnet tool install --global AutoVer --version 0.0.25
5555 # Set up a git user to be able to run git commands later on
5656 - name : Setup Git User
5757 run : |
@@ -75,13 +75,13 @@ jobs:
7575 run : |
7676 changelog=$(autover changelog --output-to-console)
7777 echo "CHANGELOG<<EOF"$'\n'"$changelog"$'\n'EOF >> "$GITHUB_OUTPUT"
78- # Merge v4sdk-development into v4sdk-release in order to synchronize the 2 branches
79- - name : Merge v4sdk-development to v4sdk-release
78+ # Merge dev into main in order to synchronize the 2 branches
79+ - name : Merge dev to main
8080 run : |
8181 git fetch origin
82- git checkout v4sdk-release
83- git merge v4sdk-development
84- git push origin v4sdk-release
82+ git checkout main
83+ git merge dev
84+ git push origin main
8585 # Create the GitHub Release
8686 - name : Create GitHub Release
8787 env :
@@ -93,15 +93,15 @@ jobs:
9393 run : |
9494 git fetch origin
9595 git push origin --delete releases/next-release
96- # This job will check if the PR was closed, it's source branch is `releases/next-release` and target branch is `v4sdk-development `.
96+ # This job will check if the PR was closed, it's source branch is `releases/next-release` and target branch is `dev `.
9797 # This indicates that the closed PR was the `Release PR`.
9898 # This job will delete the tag created by AutoVer and the release branch.
9999 clean-up-closed-release :
100100 name : Clean up closed release
101101 if : |
102102 github.event.pull_request.merged == false &&
103103 github.event.pull_request.head.ref == 'releases/next-release' &&
104- github.event.pull_request.base.ref == 'v4sdk-development '
104+ github.event.pull_request.base.ref == 'dev '
105105 runs-on : ubuntu-latest
106106 steps :
107107 # Checkout a full clone of the repo
@@ -117,7 +117,7 @@ jobs:
117117 dotnet-version : 8.0.x
118118 # Install AutoVer which is needed to retrieve information about the current release.
119119 - name : Install AutoVer
120- run : dotnet tool install --global AutoVer --version 0.0.21
120+ run : dotnet tool install --global AutoVer --version 0.0.25
121121 # Set up a git user to be able to run git commands later on
122122 - name : Setup Git User
123123 run : |
0 commit comments