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 18
18
uses : actions/checkout@v4
19
19
with :
20
20
fetch-depth : 0
21
- persist-credentials : true
22
- token : ${{ secrets.RELEASE_GITHUB_TOKEN }}
23
21
- name : Get current branch name
24
22
id : branch
25
23
run : echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
@@ -30,14 +28,17 @@ jobs:
30
28
run : |
31
29
git checkout -b build/release-${{ env.TIMESTAMP }}
32
30
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 to run CI"
36
+ branch : build/release-${{ env.TIMESTAMP }}
37
+ commit_options : " --allow-empty"
37
38
- name : Create Pull Request
38
39
uses : peter-evans/create-pull-request@v6
39
40
with :
40
- token : ${{ secrets.RELEASE_GITHUB_TOKEN }}
41
+ token : ${{ secrets.GITHUB_TOKEN }}
41
42
branch : build/release-${{ env.TIMESTAMP }}
42
43
base : release
43
44
title : " build: Release"
You can’t perform that action at this time.
0 commit comments