Skip to content

Merge pull request #87 from bmcase/patcg_ipa_meeting_minutes #67

Merge pull request #87 from bmcase/patcg_ipa_meeting_minutes

Merge pull request #87 from bmcase/patcg_ipa_meeting_minutes #67

Workflow file for this run

name: "Update the Table of Contents"
on: [push]
env:
FILE: IPA-End-to-End.md
jobs:
setup:
name: "Update TOC"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Update Table of Contents"
run: |
t=$(mktemp)
python3 toc.py "$FILE" > "$t"
if ! diff -q "$FILE" "$t" 2>/dev/null; then
mv "$t" "$FILE"
git -c user.name="ToC Bot" -c user.email="toc@example.com" commit -m "Update ToC" "$FILE"
fi
- name: "Push Changes"
if: ${{ github.ref_type == 'branch' }}
run: |
git push origin "${{ github.ref }}"