File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,24 @@ name: Dependabot auto-merge
22
33on :
44 workflow_call :
5+ inputs :
6+ enable-organization-bot :
7+ description : |
8+ Enable automatic approval and merge of PRs initiated by a bot.
9+
10+ type : boolean
11+ required : false
12+ default : true
13+ organization-bot :
14+ description : |
15+ The bot name for your organization,
16+ for which you wish to enable auto-merge.
17+
18+ Example: bot-go-openapi[bot]
19+
20+ type : string
21+ required : false
22+ default : ' bot-go-openapi[bot]'
523
624permissions :
725 contents : read
4563 contents : write
4664 pull-requests : write
4765 runs-on : ubuntu-latest
48- if : ${{ github.event.pull_request.user.login == 'bot-go-openapi[ bot]' }}
66+ if : ${{ inputs.enable-organizaton-bot == 'true' && github.event.pull_request.user.login == inputs.organization- bot }}
4967 env :
5068 PR_URL : ${{github.event.pull_request.html_url}}
5169 GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 4242 (use "|" to replace end of line).
4343 required : false
4444 type : string
45+ env_gpg_private_key :
46+ description : |
47+ PGP tag-signing by a bot user.
48+
49+ This is the name of the secret to sign tags.
50+ It contains an armored GPG private key.
51+ Tags are not signed if not provided.
52+ required : false
53+ type : string
54+ default : CI_BOT_GPG_PRIVATE_KEY
55+ env_passphrase :
56+ description : |
57+ PGP tag-signing by a bot user.
58+
59+ This is the name of the secret that containts the passphrase to unlock the GPG key.
60+ Tags are not signed if not provided.
61+ required : false
62+ type : string
63+ default : CI_BOT_GPG_PASSPHRASE
64+ env_fingerprint :
65+ description : |
66+ PGP tag-signing by a bot user.
67+
68+ This is the name of the secret that contains the fingerprint of the GPG key.
69+ Tags are not signed if not provided.
70+ required : false
71+ type : string
72+ default : CI_BOT_SIGNING_KEY
4573
4674jobs :
4775 tag-release :
You can’t perform that action at this time.
0 commit comments