-
-
Notifications
You must be signed in to change notification settings - Fork 94
40 lines (32 loc) · 867 Bytes
/
nix.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
name: Nix
on:
push:
branches: ["main"]
jobs:
update-cargo-nix:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.WORKFLOW_SSH_KEY }}
- name: Install Nix
uses: cachix/install-nix-action@v20
- name: Setup Cachix
uses: cachix/cachix-action@v12
with:
name: aiken-lang
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Run cargo2nix
shell: bash
run: |
nix run github:cargo2nix/cargo2nix -- -s > Cargo.nix
- name: Create PR
uses: peter-evans/create-pull-request@v4
with:
branch: patch/cargo.nix
delete-branch: true
title: Update Cargo.nix
add-paths: Cargo.nix