-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (32 loc) · 1.02 KB
/
crate2nix.yaml
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
name: "Update crate2nix"
on:
push:
branches:
- master
jobs:
update-crate2nix:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && github.repository == 'isomer/erbium'"
steps:
- name: Checking out the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Installing Nix
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install crate2nix
run: |
nix-env -iA cachix -f https://cachix.org/api/v1/install
$HOME/.nix-profile/bin/cachix use eigenvalue
nix-env -i -f https://github.com/kolloch/crate2nix/archive/refs/tags/0.10.0.tar.gz
- name: Run crate2nix
run: |
$HOME/.nix-profile/bin/crate2nix generate
- name: Commit crate2nix and push to master
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update Cargo.nix [ci skip]"
branch: 'master'
file_pattern: Cargo.nix