File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : auto update gomod2nix.toml
2+ on :
3+ push :
4+ paths :
5+ - ' go.mod'
6+ - ' go.sum'
7+ - ' .github/workflows/gomod2nix.yml'
8+ jobs :
9+ gomod2nix :
10+ name : gomod2nix update
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Set up nix
14+ uses : cachix/install-nix-action@v27
15+ with :
16+ nix_path : nixpkgs=channel:nixos-unstable
17+
18+ - name : Set up Go
19+ uses : actions/setup-go@master
20+ with :
21+ go-version : " 1.20"
22+
23+ - name : Check out code into the Go module directory
24+ uses : actions/checkout@master
25+
26+ - name : gomod2nix update
27+ run : |
28+ nix run github:nix-community/gomod2nix
29+ - name : Commit back
30+ if : ${{ !github.head_ref }}
31+ continue-on-error : true
32+ run : |
33+ git config --local user.name 'github-actions[bot]'
34+ git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
35+ git add --all
36+ git commit -m "chore: bump deps"
37+ - name : Create Pull Request
38+ if : ${{ !github.head_ref }}
39+ continue-on-error : true
40+ uses : peter-evans/create-pull-request@v4
41+ with :
42+ delete-branch : true
43+ branch-suffix : short-commit-hash
You can’t perform that action at this time.
0 commit comments