1
1
# This GitHub Workflow is designed to run automatically after the Release PR, which was created by the `Create Release PR` workflow, is closed.
2
2
# This workflow has 2 jobs. One will run if the `Release PR` is successfully merged, indicating that a release should go out.
3
3
# The other will run if the `Release PR` was closed and a release is not intended to go out.
4
- name : Sync 'dev ' and 'master '
4
+ name : Sync 'v4sdk-development ' and 'v4sdk-release '
5
5
6
6
# The workflow will automatically be triggered when any PR is closed.
7
7
on :
@@ -13,15 +13,15 @@ permissions:
13
13
id-token : write
14
14
15
15
jobs :
16
- # This job will check if the PR was successfully merged, it's source branch is `releases/next-release` and target branch is `dev `.
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 `.
17
17
# This indicates that the merged PR was the `Release PR`.
18
- # This job will synchronize `dev ` and `master `, create a GitHub Release and delete the `releases/next-release` branch.
18
+ # This job will synchronize `v4sdk-development ` and `v4sdk-release `, create a GitHub Release and delete the `releases/next-release` branch.
19
19
sync-dev-and-main :
20
- name : Sync dev and master
20
+ name : Sync v4sdk-development and v4sdk-release
21
21
if : |
22
22
github.event.pull_request.merged == true &&
23
23
github.event.pull_request.head.ref == 'releases/next-release' &&
24
- github.event.pull_request.base.ref == 'dev '
24
+ github.event.pull_request.base.ref == 'v4sdk-development '
25
25
runs-on : ubuntu-latest
26
26
steps :
27
27
# Assume an AWS Role that provides access to the Access Token
41
41
- name : Checkout code
42
42
uses : actions/checkout@v4
43
43
with :
44
- ref : dev
44
+ ref : v4sdk-development
45
45
fetch-depth : 0
46
46
token : ${{ env.AWS_SECRET_TOKEN }}
47
47
# Install .NET8 which is needed for AutoVer
@@ -75,13 +75,13 @@ jobs:
75
75
run : |
76
76
changelog=$(autover changelog --output-to-console)
77
77
echo "CHANGELOG<<EOF"$'\n'"$changelog"$'\n'EOF >> "$GITHUB_OUTPUT"
78
- # Merge dev into master in order to synchronize the 2 branches
79
- - name : Merge dev to master
78
+ # Merge v4sdk-development into v4sdk-release in order to synchronize the 2 branches
79
+ - name : Merge v4sdk-development to v4sdk-release
80
80
run : |
81
81
git fetch origin
82
- git checkout master
83
- git merge dev
84
- git push origin master
82
+ git checkout v4sdk-release
83
+ git merge v4sdk-development
84
+ git push origin v4sdk-release
85
85
# Create the GitHub Release
86
86
- name : Create GitHub Release
87
87
env :
@@ -93,15 +93,15 @@ jobs:
93
93
run : |
94
94
git fetch origin
95
95
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 `dev `.
96
+ # This job will check if the PR was closed, it's source branch is `releases/next-release` and target branch is `v4sdk-development `.
97
97
# This indicates that the closed PR was the `Release PR`.
98
98
# This job will delete the tag created by AutoVer and the release branch.
99
99
clean-up-closed-release :
100
100
name : Clean up closed release
101
101
if : |
102
102
github.event.pull_request.merged == false &&
103
103
github.event.pull_request.head.ref == 'releases/next-release' &&
104
- github.event.pull_request.base.ref == 'dev '
104
+ github.event.pull_request.base.ref == 'v4sdk-development '
105
105
runs-on : ubuntu-latest
106
106
steps :
107
107
# Checkout a full clone of the repo
0 commit comments