Commit 029a24639e

029a24639ee0dd3b9b76df9dcd6f3e754746cd6e

parent: f0e22f9222

Unregistered key

Alicia Sykes <alicia@omg.lol> · 2022-07-23 19:10 UTC
committer: <noreply@github.com>

Adds git push for pdf

Layout: unified · split

.github/workflows/compile-pdf.yml +22 −4
@@ -11,16 +11,34 @@ jobs:
1111 compile-pdf:
1212 runs-on: ubuntu-latest
1313 steps:
14 - uses: actions/checkout@v2
15 - uses: baileyjm02/markdown-to-pdf@v1.2.0
14 - name: Checkout 🛎️
15 uses: actions/checkout@v2
16 - name: Make PDF 📄
17 uses: baileyjm02/markdown-to-pdf@v1.2.0
1618 with:
1719 input_path: README.md
1820 output_dir: .github/assets
1921 build_pdf: true
2022 build_html: false
2123 table_of_contents: false
22 - uses: actions/upload-artifact@v3
24 - name: Upload Artifact 📤
25 uses: actions/upload-artifact@v3
2326 with:
2427 name: awesome-privacy-pdf
25 path: .github/assets
28 path: .github/assets/README.pdf
29 - name: Commit file ✅
30 run: |
31 git config --local user.email "alicia-gh-bot@mail.as93.net"
32 git config --local user.name "liss-bot"
33 git add .github/assets/README.pdf
34 if ! git diff-index --quiet HEAD; then
35 git commit -m "Generate PDF file"
36 else
37 echo "Nothing to do"
38 fi
39 - name: Push changes ➡️
40 uses: ad-m/github-push-action@master
41 with:
42 github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
43 branch: ${{ github.ref }}
2644