diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml index 3be1a16..d7154ff 100644 --- a/.github/workflows/flake-update.yml +++ b/.github/workflows/flake-update.yml @@ -1,26 +1,41 @@ -name: flake-update -on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: '0 1 * * *' # runs daily at 01:00 - -jobs: - lockfile: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v3.5.3 - - name: install - uses: DeterminateSystems/nix-installer-action@v4 - - name: update - uses: DeterminateSystems/update-flake-lock@v19 - with: - pr-title: "Update flake.lock" # Title of PR to be created - pr-labels: | # Labels to be set on the PR - dependencies - automated - - name: merge PR - run: | - gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +{ + "name": "flake-update", + "on": { + "workflow_dispatch": null, + "schedule": [ + { + "cron": "0 1 * * *" + } + ] + }, + "jobs": { + "lockfile": { + "runs-on": "ubuntu-latest", + "steps": [ + { + "name": "checkout", + "uses": "actions/checkout@v3.5.3" + }, + { + "name": "install", + "uses": "DeterminateSystems/nix-installer-action@v4" + }, + { + "name": "update", + "uses": "DeterminateSystems/update-flake-lock@v19", + "with": { + "pr-title": "Update flake.lock", + "pr-labels": "CI" + } + }, + { + "name": "merge", + "run": "gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch\n", + "env": { + "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" + } + } + ] + } + } +}