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 3333 id : can-push
3434 shell : bash
3535 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
3739 echo "can_push=false" >> $GITHUB_OUTPUT
3840 elif [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
3941 echo "can_push=false" >> $GITHUB_OUTPUT
4648 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4749 if : steps.can-push.outputs.can_push == 'true'
4850 with :
51+ token : ${{ inputs.access-token }}
4952 ref : ${{ github.head_ref }}
5053 fetch-depth : 0
51- token : ${{ inputs.access-token }}
52- persist-credentials : false
5354
5455 - name : Run ${{ inputs.fix-task }}
5556 if : steps.can-push.outputs.can_push == 'true'
You can’t perform that action at this time.
0 commit comments