-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 1.12 KB
/
allowed-refs.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
name: Check that allowed refs are up to date
on:
schedule:
- cron: "0 0 * * *" # Daily
jobs:
check-allowed-refs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check allowed refs
run: |
nix develop --command cargo run --features allowed-refs -- --check-allowed-refs
- name: Update allowed-refs.json
if: failure()
run: |
allowed_refs_json=$(nix develop --command cargo run --features allowed-refs -- --get-allowed-refs | jq .)
echo "${allowed_refs_json}" > allowed-refs.json
- name: Create pull request
if: failure()
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update allowed-refs.json to new valid Git refs list
title: Update allowed-refs.json
body: |
Nixpkgs has changed its list of maintained references. This PR updates `allowed-refs.json` to reflect that change.
branch: updated-allowed-refs
base: main