From 1e2c8e1dd98645bf2bced74c033cbe1971d3d5bf Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 12 Nov 2024 18:15:49 +0800 Subject: [PATCH] ci: add update Nix dependencies --- .github/workflows/update-deps.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/update-deps.yml diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml new file mode 100644 index 0000000..ba9ce2b --- /dev/null +++ b/.github/workflows/update-deps.yml @@ -0,0 +1,26 @@ +name: Update Nix dependencies +on: + workflow_dispatch: + schedule: + # This is done on a biweekly basis. + - cron: '0 0 1,15 * *' + +jobs: + update-nix-deps: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v15 + - run: nix develop --command make update + - id: datetime + run: | + echo "DATETIME=$(date '+%F')" >> "$GITHUB_OUTPUT" + - name: Create pull request + uses: peter-evans/create-pull-request + with: + title: "ci: update lockfile as of ${{ steps.update-nix-deps.datetime.outputs.DATETIME }}" + body: "" + labels: npins-update