Commit 029a24639e
Unregistered key
Layout: unified · split
.github/workflows/compile-pdf.yml +22 −4
| @@ -11,16 +11,34 @@ jobs: | ||
| 11 | 11 | compile-pdf: |
| 12 | 12 | runs-on: ubuntu-latest |
| 13 | 13 | 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 | |
| 16 | 18 | with: |
| 17 | 19 | input_path: README.md |
| 18 | 20 | output_dir: .github/assets |
| 19 | 21 | build_pdf: true |
| 20 | 22 | build_html: false |
| 21 | 23 | table_of_contents: false |
| 22 | - uses: actions/upload-artifact@v3 | |
| 24 | - name: Upload Artifact 📤 | |
| 25 | uses: actions/upload-artifact@v3 | |
| 23 | 26 | with: |
| 24 | 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 | |