Skip to content

Commit f65a52b

Browse files
committed
temp
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent fe2baeb commit f65a52b

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

.github/workflows/auto-merge.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@ name: Dependabot auto-merge
22

33
on:
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

624
permissions:
725
contents: read
@@ -45,7 +63,7 @@ jobs:
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}}

.github/workflows/bump-release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,34 @@ on:
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

4674
jobs:
4775
tag-release:

0 commit comments

Comments
 (0)