-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.22 KB
/
go-update-deps.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
42
43
name: Update Dependencies
concurrency: ci-${{ github.ref }}
on:
workflow_dispatch:
schedule:
- cron: "10 2 * * 0"
repository_dispatch:
types:
- catalog-data-published
- api-core-published
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {
name: Linux,
os: ubuntu-latest,
}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Update dependencies
run: |
git config --global user.email "[email protected]"
git config --global user.name "SweetRPG Dependency Updater"
git checkout ${{ github.head_ref || github.ref_name }}
go get -u ./...
go mod tidy
git add go.mod go.sum
git commit -m "Update dependencies" || exit 0
git push origin || exit 0