Skip to content

Commit

Permalink
Run readme generation for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Feb 22, 2024
1 parent b97319b commit f73b486
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Run on each main branch commit, create a commit to update the README.md

name: Update Readme
name: Check and update Readme

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
update-readme:
Expand All @@ -19,6 +22,10 @@ jobs:
- name: Update Readme
run: nix run .#updateReadme
- uses: EndBug/add-and-commit@v9
if: ${{ github.event_name == 'push' }}
with:
push: true
- name: Output readme
if: ${{ github.event_name != 'push' }}
run: cat README.md > "$GITHUB_STEP_SUMMARY"

0 comments on commit f73b486

Please sign in to comment.