-
Notifications
You must be signed in to change notification settings - Fork 97
41 lines (39 loc) · 1.17 KB
/
update-hash.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
name: Update nix hashes
on:
push:
branches-ignore:
- master
tags-ignore:
- '**'
jobs:
update-hash:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# This is needed to be able to push and trigger CI with that push
token: ${{ secrets.NIV_UPDATER_TOKEN }}
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-22.11
- uses: cachix/cachix-action@v15
with:
name: ic-hs-test
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Update drun cargo hash
run: |
cd nix
nix shell -f . nix-update -c nix-update --version=skip drun
- name: Update ic-wasm cargo hash
run: |
nix shell -f default.nix nix-update -c nix-update --version=skip ic-wasm
- name: Commit changes
uses: EndBug/[email protected]
with:
default_author: github_actions
author_name: Nix hash updater
github_token: ${{ secrets.NIV_UPDATER_TOKEN }}
committer_name: GitHub Actions
committer_email: [email protected]
message: "Updating nix hashes"