forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 984 Bytes
/
dependabot-tidy.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
39
40
41
name: Dependabot Tidy Go Mods
on:
pull_request:
paths:
- '.github/workflows/**'
- '**/go.mod'
- '**/go.sum'
jobs:
tidy_go_mods:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Tidy all Go mods
env:
VERIFY_MOD_SUMS: false
run: |
# Ensure Make is installed
make --version
# Run the tidy target
make tidy
- name: Commit changes, if any
uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skip_dirty_check: false # Enable dirty check, and skip unnecessary committing
commit_message: "Run 'go mod tidy' via GitHub Actions"