-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.06 KB
/
ghasum.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
36
37
38
name: ghasum
on:
push:
branches:
- dependabot/github_actions/**
permissions: read-all
jobs:
update:
name: Update gha.sum
runs-on: ubuntu-24.04
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
contents: write # To push a commit
steps:
- name: Create automation token
uses: tibdex/[email protected]
id: automation-token
with:
app_id: ${{ secrets.AUTOMATION_APP_ID }}
private_key: ${{ secrets.AUTOMATION_APP_KEY }}
- name: Checkout repository
uses: actions/[email protected]
with:
token: ${{ steps.automation-token.outputs.token }}
- name: Install Go
uses: actions/[email protected]
with:
go-version-file: go.mod
# NOTE: skip "Verify action checksums" because they might not be up-to-date
- name: Update gha.sum
run: go run ./cmd/ghasum update -force
- name: Commit gha.sum
uses: stefanzweifel/[email protected]
with:
commit_message: Update ghasum checksums
file_pattern: .github/workflows/gha.sum