From 8af1046cdfb9577ba4845d3a3768131034e356cd Mon Sep 17 00:00:00 2001 From: arthsmn Date: Tue, 23 Jul 2024 08:46:40 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20github=20workflow=20to=20upda?= =?UTF-8?q?te=20nix=20inputs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update-nix-inputs.yml | 24 ++++++++++++++++++++++++ Justfile | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/update-nix-inputs.yml diff --git a/.github/workflows/update-nix-inputs.yml b/.github/workflows/update-nix-inputs.yml new file mode 100644 index 0000000..241d8ba --- /dev/null +++ b/.github/workflows/update-nix-inputs.yml @@ -0,0 +1,24 @@ +name: Update nix inputs + +on: + workflow_dispatch: + schedule: + - cron: '51 2 * * 0' + +jobs: + update: + name: inputs + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - uses: DeterminateSystems/nix-installer-action@main + - uses: extractions/setup-just@v2 + - name: Update inputs + run: just update-nix-inputs + + - name: Commit + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: '⬆️ Nix: update inputs' diff --git a/Justfile b/Justfile index b20e574..dcd9e32 100644 --- a/Justfile +++ b/Justfile @@ -43,3 +43,6 @@ parser-data: ./generator > ../../highlevel.go ast.json gofmt -s -w ../../highlevel.go jq . < ast.json | sponge ast.json + +update-nix-inputs: + nix flake update