Skip to content

flake

flake #115

Workflow file for this run

---
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
name: flake
"on":
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
permissions:
contents: write
jobs:
flake:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2
with:
app-id: ${{ secrets.TOKEN_EXCHANGE_APP }}
private-key: ${{ secrets.TOKEN_EXCHANGE_KEY }}
permission-contents: write
- name: Checkout source
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
token: ${{ steps.token.outputs.token }}
- name: Install nix
uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31
- name: Update flake
run: nix flake update
- name: Source rebase
run: git pull --autostash --rebase
- name: Commit changes
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9
with:
author_name: GitHub Actions
author_email: [email protected]
add: flake.lock
message: "chore(flake): updated lockfile [skip ci]"
push: true
commit: --signoff
...