File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1818 uses : actions/checkout@v4
1919 with :
2020 fetch-depth : 0
21- persist-credentials : true
22- token : ${{ secrets.RELEASE_GITHUB_TOKEN }}
2321 - name : Get current branch name
2422 id : branch
2523 run : echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
@@ -30,14 +28,17 @@ jobs:
3028 run : |
3129 git checkout -b build/release-${{ env.TIMESTAMP }}
3230 git push origin build/release-${{ env.TIMESTAMP }}
33- - name : Make empty commit to run CI
34- run : |
35- git commit --allow-empty -m "chore: empty commit for release [${{ env.TIMESTAMP }}]"
36- git push origin build/release-${{ env.TIMESTAMP }}
31+ # This is needed to run the CI, otherwise the CI is skipped due to the semantic-release [skip-ci] tag
32+ - name : Make an empty commit
33+ uses : stefanzweifel/git-auto-commit-action@v5
34+ with :
35+ commit_message : " chore: empty commit for release"
36+ branch : build/release-${{ env.TIMESTAMP }}
37+ commit_options : " --allow-empty"
3738 - name : Create Pull Request
3839 uses : peter-evans/create-pull-request@v6
3940 with :
40- token : ${{ secrets.RELEASE_GITHUB_TOKEN }}
41+ token : ${{ secrets.GITHUB_TOKEN }}
4142 branch : build/release-${{ env.TIMESTAMP }}
4243 base : release
4344 title : " build: Release"
You can’t perform that action at this time.
0 commit comments