-
-
Notifications
You must be signed in to change notification settings - Fork 21
35 lines (35 loc) · 1015 Bytes
/
generate-credits.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: generate CREDITS
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
jobs:
generate:
if: startsWith(github.head_ref, 'dependabot/') && github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: stable
check-latest: true
- name: Generate token # required to trigger actions on the commit
id: generate_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.WRITE_APP_ID }}
private_key: ${{ secrets.WRITE_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.generate_token.outputs.token }}
- name: Generate CREDITS
run: make credits
- uses: EndBug/add-and-commit@v9
with:
add: CREDITS
default_author: github_actions
message: 'chore(deps): generate CREDITS'