committed by
GitHub
1 changed files with 13 additions and 22 deletions
@ -1,30 +1,21 @@ |
|||||
name: Convert PDF to Markdown |
|
||||
|
|
||||
on: |
on: |
||||
push: |
push: |
||||
paths: |
paths: |
||||
- '**.md' |
- 'doc/**' |
||||
|
|
||||
|
name: CreatePDFs |
||||
|
|
||||
jobs: |
jobs: |
||||
convert_md: |
makepdfs: |
||||
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
||||
steps: |
steps: |
||||
- name: Checkout Code |
- uses: actions/checkout@v1 |
||||
uses: actions/[email protected] |
- uses: mkrakowitzer/actions-makepdfs@master |
||||
|
if: github.ref == 'refs/heads/master' |
||||
|
with: |
||||
|
markdown_dir: doc |
||||
|
output_dir: tmp |
||||
|
- uses: actions/upload-artifact@v1 |
||||
with: |
with: |
||||
fetch-depth: 1 |
name: platform-architecture-docs |
||||
- name: Create .pdfs |
path: tmp |
||||
uses: scottypate/[email protected] |
|
||||
env: { |
|
||||
# Use this parameter to determine where the generated .pdf(s) will be stored. |
|
||||
PDF_DIR: './pdfs' |
|
||||
} |
|
||||
- name: Create Pull Request |
|
||||
uses: peter-evans/[email protected] |
|
||||
env: |
|
||||
# The token is built in to actions. No config required. |
|
||||
COMMIT_MESSAGE: Add .pdf files. |
|
||||
PULL_REQUEST_TITLE: Add .pdf files. |
|
||||
PULL_REQUEST_BRANCH: pdf-add |
|
||||
PULL_REQUEST_BODY: :wave: Here are the .pdf files you requested. |
|
||||
PULL_REQUEST_REVIEWERS: scottypate |
|
||||
|
Loading…
Reference in new issue