Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/readme-to-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: README-to-pdf

on:
push:
branches:
- "**"
paths:
- README.md
- .github/workflows/readme-to-pdf.yml
Expand Down Expand Up @@ -147,11 +149,13 @@ jobs:
commit:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/heads/')

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}

- name: Download PDF
uses: actions/download-artifact@v4
Expand All @@ -162,6 +166,7 @@ jobs:
run: |
set -euo pipefail
repo_name="${GITHUB_REPOSITORY##*/}"
branch_name="${GITHUB_REF_NAME}"

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -173,4 +178,6 @@ jobs:
git add "${repo_name}.pdf"
git diff --cached --quiet && exit 0
git commit -m "Update ${repo_name}.pdf"
git push
git fetch origin "$branch_name"
git rebase "origin/$branch_name"
git push origin "HEAD:$branch_name"
Binary file modified protocol-template.pdf
Binary file not shown.