Skip to content

Commit 64b3568

Browse files
chore: fix permission issue for scheduled nightly-build.yml (#1630)
* chore: fix permission issue for scheduled `nightly-build.yml`
1 parent b2b1051 commit 64b3568

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/nightly-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797
uses: actions/checkout@v4
9898
with:
9999
fetch-depth: 0 # Required for tags
100-
persist-credentials: false
100+
# persists credentials locally if tagging and releases are not skipped.
101+
persist-credentials: ${{ ! inputs.skip_tagging_and_releases }}
101102
ref: ${{ (inputs.is_PR && inputs.PR_NUMBER) && github.event.pull_request.head.sha || '' }}
102103

103104
- name: Set up Java 21

0 commit comments

Comments
 (0)