Skip to content

Commit 946a16b

Browse files
committed
fix(nix): delegate to shared nix-update-hash action
Replaces the inline workflow with a call to datum-cloud/actions/.github/workflows/nix-update-hash.yaml@main.
1 parent 395fe71 commit 946a16b

1 file changed

Lines changed: 7 additions & 40 deletions

File tree

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,17 @@
11
name: "nix-update-hash"
2+
23
on:
34
push:
45
paths:
56
- 'go.mod'
67
- 'go.sum'
78
workflow_dispatch:
89

10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
914
jobs:
1015
update-hash:
11-
runs-on: ubuntu-latest
12-
permissions:
13-
contents: write
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v6
17-
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
19-
20-
- name: Install Nix
21-
uses: cachix/install-nix-action@v31
22-
with:
23-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
24-
25-
- name: Install Go
26-
uses: actions/setup-go@v6
27-
with:
28-
go-version-file: 'go.mod'
29-
30-
- name: Install Task
31-
uses: arduino/setup-task@v2
32-
33-
- name: Update nix vendor hash
34-
run: task nix-update-hash
35-
36-
- name: Check for changes
37-
id: git-check
38-
run: |
39-
git diff --exit-code flake.nix || echo "changed=true" >> $GITHUB_OUTPUT
40-
41-
- name: Create Pull Request
42-
if: steps.git-check.outputs.changed == 'true'
43-
uses: peter-evans/create-pull-request@v7
44-
with:
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
commit-message: "chore(nix): update vendorHash for go deps"
47-
branch: "nix/update-vendorhash"
48-
branch-suffix: timestamp
49-
title: "chore(nix): update vendorHash for go deps"
50-
body: "Automated vendorHash update for Go module dependency changes."
16+
uses: datum-cloud/actions/.github/workflows/nix-update-hash.yaml@main
17+
secrets: inherit

0 commit comments

Comments
 (0)