File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
.github/actions/gradle-task-with-commit Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33
33
id : can-push
34
34
shell : bash
35
35
run : |
36
- if [[ "${{ env.GITHUB_REF_PROTECTED }}" == 'true' ]]; then
36
+ if [[ "${{ inputs.access-token }}" == '' ]]; then
37
+ echo "can_push=false" >> $GITHUB_OUTPUT
38
+ elif [[ "${{ env.GITHUB_REF_PROTECTED }}" == 'true' ]]; then
37
39
echo "can_push=false" >> $GITHUB_OUTPUT
38
40
elif [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
39
41
echo "can_push=false" >> $GITHUB_OUTPUT
46
48
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
47
49
if : steps.can-push.outputs.can_push == 'true'
48
50
with :
51
+ token : ${{ inputs.access-token }}
49
52
ref : ${{ github.head_ref }}
50
53
fetch-depth : 0
51
- token : ${{ inputs.access-token }}
52
- persist-credentials : false
53
54
54
55
- name : Run ${{ inputs.fix-task }}
55
56
if : steps.can-push.outputs.can_push == 'true'
You can’t perform that action at this time.
0 commit comments