Skip to content

Commit 224de06

Browse files
Update GitHub Actions workflow to fetch the main branch and push changes explicitly to origin main
1 parent e6784cc commit 224de06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
17+
with:
18+
ref: main
19+
fetch-depth: 0
1720

1821
- name: Set up JDK 21
1922
uses: actions/setup-java@v4
@@ -64,7 +67,7 @@ jobs:
6467
git config user.email "github-actions[bot]@users.noreply.github.com"
6568
git add README.md
6669
git diff --staged --quiet || git commit -m "docs: update version to ${{ steps.get_version.outputs.VERSION }} in README"
67-
git push
70+
git push origin main
6871
env:
6972
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7073

0 commit comments

Comments
 (0)