Adds git push for pdf
This commit is contained in:
parent
f0e22f9222
commit
029a24639e
|
@ -11,16 +11,34 @@ jobs:
|
||||||
compile-pdf:
|
compile-pdf:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout 🛎️
|
||||||
- uses: baileyjm02/markdown-to-pdf@v1.2.0
|
uses: actions/checkout@v2
|
||||||
|
- name: Make PDF 📄
|
||||||
|
uses: baileyjm02/markdown-to-pdf@v1.2.0
|
||||||
with:
|
with:
|
||||||
input_path: README.md
|
input_path: README.md
|
||||||
output_dir: .github/assets
|
output_dir: .github/assets
|
||||||
build_pdf: true
|
build_pdf: true
|
||||||
build_html: false
|
build_html: false
|
||||||
table_of_contents: false
|
table_of_contents: false
|
||||||
- uses: actions/upload-artifact@v3
|
- name: Upload Artifact 📤
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: awesome-privacy-pdf
|
name: awesome-privacy-pdf
|
||||||
path: .github/assets
|
path: .github/assets/README.pdf
|
||||||
|
- name: Commit file ✅
|
||||||
|
run: |
|
||||||
|
git config --local user.email "alicia-gh-bot@mail.as93.net"
|
||||||
|
git config --local user.name "liss-bot"
|
||||||
|
git add .github/assets/README.pdf
|
||||||
|
if ! git diff-index --quiet HEAD; then
|
||||||
|
git commit -m "Generate PDF file"
|
||||||
|
else
|
||||||
|
echo "Nothing to do"
|
||||||
|
fi
|
||||||
|
- name: Push changes ➡️
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
branch: ${{ github.ref }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue