mmcesim-doc-push #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update mmCEsim-doc | |
on: | |
repository_dispatch: | |
types: [mmcesim-doc-push] | |
permissions: | |
contents: write | |
jobs: | |
update-doc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out | |
uses: actions/checkout@v3 | |
- name: Install QPDF | |
run: sudo apt-get -y install qpdf | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v5 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Run Update Script | |
run: chmod +x ./scripts/update_doc && ./scripts/update_doc | |
- name: Commit Files | |
run: | | |
git config --local user.email "bot@mmcesim.org" | |
git config --local user.name "mmcesim-bot" | |
git commit -am"Update mmCEsim-doc.pdf" || echo "No change to the PDF." | |
- name: Push Changes | |
uses: ad-m/github-push-action@master |