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:
11 compile-pdf: 11 compile-pdf:
12 runs-on: ubuntu-latest 12 runs-on: ubuntu-latest
13 steps: 13 steps:
14 - uses: actions/checkout@v2 14 - name: Checkout 🛎️
15 - uses: baileyjm02/markdown-to-pdf@v1.2.0 15 uses: actions/checkout@v2
16 - name: Make PDF 📄
17 uses: baileyjm02/markdown-to-pdf@v1.2.0
16 with: 18 with:
17 input_path: README.md 19 input_path: README.md
18 output_dir: .github/assets 20 output_dir: .github/assets
19 build_pdf: true 21 build_pdf: true
20 build_html: false 22 build_html: false
21 table_of_contents: false 23 table_of_contents: false
22 - uses: actions/upload-artifact@v3 24 - name: Upload Artifact 📤
25 uses: actions/upload-artifact@v3
23 with: 26 with:
24 name: awesome-privacy-pdf 27 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 }}
26 44