From 50f186a1e90378f9c62070e939b57fce6a8c30ae Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 24 Oct 2024 00:58:45 +0530 Subject: [PATCH] add action to update inputs --- .github/workflows/update-inputs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update-inputs.yml diff --git a/.github/workflows/update-inputs.yml b/.github/workflows/update-inputs.yml new file mode 100644 index 0000000..459c871 --- /dev/null +++ b/.github/workflows/update-inputs.yml @@ -0,0 +1,28 @@ +name: Update inputs + +on: + schedule: + - cron: "0 0 * * 5" + workflow_dispatch: + +jobs: + update-inputs: + runs-on: ubuntu-latest + name: Update Inputs + steps: + - uses: actions/checkout@v3 + with: + token: ${{ github.token }} + ref: ${{ github.head_ref }} + - uses: cachix/install-nix-action@v20 + with: + github_access_token: ${{ github.token }} + - name: Update inputs + run: | + nix flake update + - name: Commit changes + uses: EndBug/add-and-commit@v9 + with: + message: 'Actions: Update Inputs' + default_author: github_actions + add: 'flake.lock'