From 7f0236a0f1aa30445444cb68f2a6bbf0d1679b1b Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 4 Jun 2023 10:30:33 +0530 Subject: [PATCH] github action to update inputs --- .github/workflows/update-inputs.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 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..7cf0b50 --- /dev/null +++ b/.github/workflows/update-inputs.yml @@ -0,0 +1,31 @@ +name: Update inputs + +on: + schedule: + - cron: "0 0 * * *" + 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: stefanzweifel/git-auto-commit-action@v4 + with: + commit_user_name: GitHub Actions + commit_user_email: "" + commit_author: "" + commit_message: 'Update Inputs' + file_pattern: flake.lock + push_options: '--force'