Skip to content

Merge pull request #24 from maguro/main #28

Merge pull request #24 from maguro/main

Merge pull request #24 from maguro/main #28

Workflow file for this run

name: Generate
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
readme:
name: README.md
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Set up Nix
uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@eeabdb06718ac63a7021c6132129679a8e22d0c7 # v3
- name: Prepare Nix shell
run: nix develop --impure .#ci
- name: Regenerate README
run: nix develop --impure .#ci -c make generate
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Regenerate README.md
file_pattern: README.md
if: github.event_name == 'push'