File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 88 workflow_dispatch :
99 inputs :
1010 version :
11- description : ' New SDK version (e.g. 5.1.38 or 5.2.0-beta1)'
11+ description : " New SDK version (e.g. 5.1.38 or 5.2.0-beta1)"
1212 type : string
1313 required : true
1414 base_branch :
15- description : ' Target branch for the PR (e.g. main for regular releases, 5.4-main for 5.4.x releases)'
15+ description : " Target branch for the PR (e.g. main for regular releases, 5.4-main for 5.4.x releases)"
1616 type : string
1717 required : false
18- default : ' main'
18+ default : " main"
1919
2020permissions :
2121 contents : write
@@ -64,14 +64,17 @@ jobs:
6464 fi
6565
6666 - name : Checkout repository
67- uses : actions/checkout@v4
67+ uses : actions/checkout@v5
6868 with :
69- fetch-depth : 0 # Ensure full history for git log
70- fetch-tags : true
69+ fetch-depth : 0 # Ensure full history for git log
70+ fetch-tags : true
71+
72+ - name : Setup Git User
73+ uses : OneSignal/sdk-actions/.github/actions/setup-git-user@main
7174
7275 - name : Create release branch from base
7376 run : |
74-
77+
7578 if git ls-remote --exit-code --heads origin "$BRANCH"; then
7679 echo "Deleting remote branch $BRANCH"
7780 git push origin --delete "$BRANCH"
8790
8891 - name : Commit and Push changes
8992 run : |
90- git config user.name "github-actions[bot]"
91- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
92-
9393 git commit -am "chore: bump SDK_VERSION to $VERSION"
9494 git push origin "$BRANCH"
9595
@@ -183,4 +183,4 @@ jobs:
183183 --title "Release SDK v$VERSION" \
184184 --body-file pr_body.md \
185185 --head "$BRANCH" \
186- --base "$BASE_BRANCH"
186+ --base "$BASE_BRANCH"
You can’t perform that action at this time.
0 commit comments