diff options
| author | seth <[email protected]> | 2024-06-12 04:42:43 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-06-12 04:42:43 -0400 |
| commit | 1784e84b6b01c651d78d257de4aeebe54858734a (patch) | |
| tree | f6d42c69f4b61549382f28a7ae9f358b0df8eca8 | |
| parent | 5396f490b3e7976ae5b29a28695d811b497e13b9 (diff) | |
ci: cleanup update-flake.yaml
| -rw-r--r-- | .github/workflows/update-flake.yaml (renamed from .github/workflows/update-lock.yaml) | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-flake.yaml index ec24cd1..06b3a4d 100644 --- a/.github/workflows/update-lock.yaml +++ b/.github/workflows/update-flake.yaml @@ -2,29 +2,36 @@ name: Update flake.lock on: schedule: - # run every saturday at 0:00 utc + # run every saturday - cron: "0 0 * * 6" workflow_dispatch: jobs: update: + name: Run update runs-on: ubuntu-latest + permissions: + contents: write + steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - name: Install Nix uses: DeterminateSystems/nix-installer-action@v12 - - name: Update lockfile & make PR + - name: Update flake.lock & make PR uses: DeterminateSystems/update-flake-lock@v22 id: update with: + commit-msg: "nix: update flake.lock" + pr-title: "nix: update flake.lock" token: ${{ secrets.MERGE_TOKEN }} - name: Enable auto-merge - shell: bash - run: gh pr merge --auto --rebase "$PR_ID" + if: env.PR_ID != '' + run: gh pr merge --auto --squash "$PR_ID" env: - GITHUB_TOKEN: ${{ secrets.MERGE_TOKEN }} + GH_TOKEN: ${{ github.token}} PR_ID: ${{ steps.update.outputs.pull-request-number }} |
