We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 515cd33 commit fd26d46Copy full SHA for fd26d46
actions/commit_pr_and_merge/action.yaml
@@ -22,6 +22,11 @@ inputs:
22
type: boolean
23
required: false
24
default: false
25
+ github_token:
26
+ description: The github token used to merge PR
27
+ type: string
28
+ required: false
29
+ default: ''
30
outputs:
31
git_tag_or_hash:
32
description: The git tag (or hash if no tag provided) of the merge commit
@@ -75,7 +80,7 @@ runs:
75
80
if: steps.changes.outputs.changes_exist == 'true'
76
81
shell: bash
77
82
env:
78
- GITHUB_TOKEN: ${{ github.token }}
83
+ GITHUB_TOKEN: ${{ inputs.github_token == '' && github.token || inputs.github_token }}
79
84
PR_URL: ${{ steps.create-pr.outputs.pull-request-url }}
85
MERGE_PR_STRATEGY: ${{ github.ref_protected == 'true' && '--merge' || '--rebase' }}
86
ADMIN_ACCESS: ${{ inputs.admin_access == 'true' && '--admin' || '' }}
0 commit comments