From 417eb390998c45bbf187354bb4aec09a75a4f50d Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Wed, 24 May 2023 21:30:09 +0200 Subject: [PATCH] Update nix-flake-update.yml --- .github/workflows/nix-flake-update.yml | 47 ++++++++------------------ 1 file changed, 15 insertions(+), 32 deletions(-) diff --git a/.github/workflows/nix-flake-update.yml b/.github/workflows/nix-flake-update.yml index d31623c..a053e8c 100644 --- a/.github/workflows/nix-flake-update.yml +++ b/.github/workflows/nix-flake-update.yml @@ -1,38 +1,21 @@ -name: "Update flakes" +name: update-flake-lock on: - repository_dispatch: - workflow_dispatch: + workflow_dispatch: # allows manual triggering schedule: - - cron: '10 4 * * 0' + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + jobs: - createPullRequest: + lockfile: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v20 + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v1 + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@vX with: - install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210604_8e6ee1b/install - extra_nix_config: | - experimental-features = nix-command flakes - - name: Make changes to pull request - run: nix flake update - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v5 - with: - commit-message: Update flakes - committer: GitHub - author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - signoff: false - branch: flake-updates - delete-branch: true - title: 'Update flakes' - body: | - Update report - - Updated with *today's* date - - Auto-generated by [create-pull-request][1] - [1]: https://github.com/peter-evans/create-pull-request - - name: Check outputs - run: | - echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" + pr-title: "Update flake.lock" # Title of PR to be created + pr-labels: | # Labels to be set on the PR + dependencies + automated