From d2556d4591bab4f65d0294e0faef7eb38d3d5278 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Tue, 29 Oct 2024 22:35:22 +0530 Subject: [PATCH] flake: add update-inputs workflow for forgejo --- .forgejo/workflows/update-inputs.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .forgejo/workflows/update-inputs.yml diff --git a/.forgejo/workflows/update-inputs.yml b/.forgejo/workflows/update-inputs.yml new file mode 100644 index 0000000..c5c0e0d --- /dev/null +++ b/.forgejo/workflows/update-inputs.yml @@ -0,0 +1,32 @@ +name: Update inputs + +runs-on: ubuntu +container: + image: node:20-bookworm + +on: + schedule: + - cron: "0 0 * * 5" + workflow_dispatch: + +jobs: + update-inputs: + runs-on: ubuntu-latest + name: Update Inputs + steps: + - uses: https://github.com/actions/checkout@v3 + with: + token: ${{ github.token }} + ref: ${{ github.head_ref }} + - uses: https://github.com/cachix/install-nix-action@v20 + with: + github_access_token: ${{ github.token }} + - name: Update inputs + run: | + nix flake update + - name: Commit changes + uses: https://github.com/EndBug/add-and-commit@v9 + with: + message: 'Actions: Update Inputs' + default_author: github_actions + add: 'flake.lock'