Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

flake_update

flake_update #124

Workflow file for this run

name: "flake_update"
on:
workflow_run:
workflows: ["fetch_upstream"]
types: [completed]
workflow_dispatch:
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
jobs:
update: # update flake.lock
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion != 'failure' }}
outputs:
pr-number: ${{ steps.update.outputs.pull-request-number }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/update-flake-lock@main
id: update
test: # test building with updated source
runs-on: ubuntu-latest
needs: update
steps:
- uses: actions/checkout@v6
with:
ref: "update_flake_lock_action"
- uses: cachix/install-nix-action@v31
- run: nix build .#scroll-git
merge: # merge the pull request
runs-on: ubuntu-latest
needs: [update,test]
steps:
- uses: actions/checkout@v4
- run: "gh pr merge --auto --merge ${{ needs.update.outputs.pr-number }}"
env:
GH_TOKEN: ${{ github.token }}