Skip to content

Commit 9604199

Browse files
committed
fix: gh actions use CI_GITHUB_TOKEN to allow pushing to main branch
1 parent dd05a02 commit 9604199

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/trigger-release-version.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ on:
1616
jobs:
1717
release-version:
1818
runs-on: ubuntu-latest
19-
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
2019
steps:
21-
- name: Checkout project sources
20+
- name: Checkout project sources ('main' branch)
2221
uses: actions/checkout@v3
22+
with:
23+
ref: main
24+
token: ${{ secrets.CI_GITHUB_TOKEN }}
2325
- uses: actions/setup-java@v3
2426
with:
2527
distribution: 'corretto'

0 commit comments

Comments
 (0)