-
-
Notifications
You must be signed in to change notification settings - Fork 155
46 lines (42 loc) · 1.31 KB
/
sync-go-workspace.yml
File metadata and controls
46 lines (42 loc) · 1.31 KB
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
42
43
44
45
46
name: Dependabot Go Workspaces Tidy
on:
pull_request:
branches:
- main
- "release/**"
types: [opened, synchronize, reopened]
paths:
- backend/go.mod
- backend/go.sum
- types/go.mod
- types/go.sum
- cli/go.mod
- cli/go.sum
- go.work
- go.work.sum
jobs:
tidy:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25.5"
cache-dependency-path: |
backend/go.sum
cli/go.sum
types/go.sum
go.work.sum
- name: Run go work sync and go mod tidy
run: |
go work sync
- name: Commit changes (if any)
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore(deps): Synchronize go.mod files via go work sync"
branch: ${{ github.head_ref }}