From 3d8a9cfa9ac83b91ade6e28330a75655796f22eb Mon Sep 17 00:00:00 2001 From: xeals Date: Thu, 23 Feb 2023 10:59:24 +1100 Subject: [PATCH] ci: add flake input job --- .github/workflows/update.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..24038e1 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,27 @@ +name: "Update flake inputs" +on: + workflow_dispatch: + schedule: + # bump weekly at 6:50 + - cron: '50 6 * * 1' +jobs: + update-flake: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + input: + - nixpkgs + - flake-utils + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v19 + - name: Update ${{ matrix.input }} + uses: DeterminateSystems/updateflake-lock@v16 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + with: + inputs: ${{ matrix.input }} + pr-labels: dependencies