Skip to content

Commit 92ceb4b

Browse files
authored
ci: Fix auto-pr (#2512)
1 parent 0015c5c commit 92ceb4b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release-prepare-monthly.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
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 to run CI"
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"

0 commit comments

Comments
 (0)