Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions .github/workflows/nix-update-hash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@ on:
paths:
- 'go.mod'
- 'go.sum'
branches-ignore:
- 'nix-update-hash/*'
workflow_dispatch:

jobs:
update-hash:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Nix
uses: cachix/install-nix-action@v31
Expand All @@ -31,19 +30,19 @@ jobs:
- name: Install Task
uses: arduino/setup-task@v2

- name: Update Nix vendor hash
- name: Update nix vendor hash
run: task nix-update-hash

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
commit-message: 'chore(nix): Update vendorHash after Go dependency changes'
title: 'chore(nix): Update vendorHash after Go dependency changes'
body: |
This PR automatically updates the vendorHash in `flake.nix` after changes to Go dependencies.

Triggered by changes to `go.mod` or `go.sum`.

🤖 Generated by GitHub Actions
branch: nix-update-hash/${{ github.ref_name }}
delete-branch: true
- name: Check for changes
id: git-check
run: |
git diff --exit-code flake.nix || echo "changed=true" >> $GITHUB_OUTPUT

- name: Commit and push changes
if: steps.git-check.outputs.changed == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add flake.nix
git commit -m "chore(nix): update vendorHash for go deps"
git push
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ github.com/zalando/go-keyring v0.2.6 h1:r7Yc3+H+Ux0+M72zacZoItR3UDxeWfKTcabvkI8u
github.com/zalando/go-keyring v0.2.6/go.mod h1:2TCrxYrbUNYfNS/Kgy/LSrkSQzZ5UPVH85RwfczwvcI=
go.miloapis.com/activity v0.2.0 h1:/l5Ce713MSSlaPw3eS0aaVV+Btqo4TJ/evhD9SchPDQ=
go.miloapis.com/activity v0.2.0/go.mod h1:sp04VDZnzqyj26+Cp10NkrA4YT3FXyN48wS8nw3zuRk=
go.miloapis.com/milo v0.16.1 h1:kz5Cod+pxD/i8A2K22R9amFK+ypwhn45NfdkrEkTfnc=
go.miloapis.com/milo v0.16.1/go.mod h1:xOFYvUsvSZV3z6eow5YdB5C/qRQf2s/5/arcfJs5XPg=
go.miloapis.com/milo v0.16.2 h1:MqrBQvTYWIWBlniJXqBe3ycO/sZxgkL2tYems4s1+LY=
go.miloapis.com/milo v0.16.2/go.mod h1:xOFYvUsvSZV3z6eow5YdB5C/qRQf2s/5/arcfJs5XPg=
go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48=
Expand Down