mirror of
https://github.com/DeterminateSystems/flake-checker.git
synced 2024-10-05 18:27:42 +03:00
Undo more changes
This commit is contained in:
parent
d332a5f608
commit
956acd4f40
22
.github/workflows/allowed-refs.yaml
vendored
22
.github/workflows/allowed-refs.yaml
vendored
@ -1,11 +1,11 @@
|
||||
name: Check that supported refs are up to date
|
||||
name: Check that allowed refs are up to date
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # Daily
|
||||
|
||||
jobs:
|
||||
check-supported-refs:
|
||||
check-allowed-refs:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -14,23 +14,23 @@ jobs:
|
||||
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
|
||||
- name: Check supported refs
|
||||
- name: Check allowed refs
|
||||
run: |
|
||||
nix develop --command cargo run --features supported-refs -- --check-supported-refs
|
||||
nix develop --command cargo run --features allowed-refs -- --check-allowed-refs
|
||||
|
||||
- name: Update supported-refs.json
|
||||
- name: Update allowed-refs.json
|
||||
if: failure()
|
||||
run: |
|
||||
supported_refs_json=$(nix develop --command cargo run --features supported-refs -- --get-supported-refs | jq .)
|
||||
echo "${supported_refs_json}" > supported-refs.json
|
||||
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 supported-refs.json to new valid Git refs list
|
||||
title: Update supported-refs.json
|
||||
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 `supported-refs.json` to reflect that change.
|
||||
branch: updated-supported-refs
|
||||
Nixpkgs has changed its list of maintained references. This PR updates `allowed-refs.json` to reflect that change.
|
||||
branch: updated-allowed-refs
|
||||
base: main
|
||||
|
Loading…
Reference in New Issue
Block a user