-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (36 loc) · 1.34 KB
/
ref-statuses.yaml
File metadata and controls
44 lines (36 loc) · 1.34 KB
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
42
43
44
name: Check that ref statuses are up to date
on:
schedule:
- cron: "0 0 * * *" # Daily
jobs:
check-ref-statuses:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/determinate-nix-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Check ref statuses
run: |
nix develop --command cargo run --features ref-statuses -- --check-ref-statuses
- name: Update ref-statuses.json
if: failure()
run: |
ref_statuses_json=$(nix develop --command cargo run --features ref-statuses -- --get-ref-statuses | jq --sort-keys .)
echo "${ref_statuses_json}" > ref-statuses.json
- name: Update README in light of new list
if: failure()
run: |
nix develop --command update-readme
- name: Create pull request
if: failure()
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update ref-statuses.json to new valid Git refs list and update README
title: Update ref-statuses.json
body: |
Nixpkgs has changed its list of maintained references. This PR updates `ref-statuses.json` to reflect that change.
branch: updated-ref-statuses
base: main