committed by
GitHub
1 changed files with 24 additions and 13 deletions
@ -1,21 +1,32 @@ |
|||||
|
name: Convert PDF to Markdown |
||||
|
|
||||
on: |
on: |
||||
push: |
push: |
||||
paths: |
paths: |
||||
- 'doc/**' |
- '**.md' |
||||
|
|
||||
name: CreatePDFs |
|
||||
|
|
||||
jobs: |
jobs: |
||||
makepdfs: |
convert_md: |
||||
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
||||
steps: |
steps: |
||||
- uses: actions/checkout@v1 |
# We must checkout the latest version of the code to get a copy of all .md files |
||||
- uses: mkrakowitzer/actions-makepdfs@master |
- name: Checkout Code |
||||
if: github.ref == 'refs/heads/master' |
uses: actions/[email protected] |
||||
with: |
|
||||
markdown_dir: doc |
|
||||
output_dir: tmp |
|
||||
- uses: actions/upload-artifact@v1 |
|
||||
with: |
with: |
||||
name: platform-architecture-docs |
fetch-depth: 1 |
||||
path: tmp |
- name: Create .pdfs |
||||
|
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. |
||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
|
COMMIT_MESSAGE: Add .pdf files. |
||||
|
PULL_REQUEST_TITLE: Add .pdf files. |
||||
|
PULL_REQUEST_BRANCH: pdf-add |
||||
|
PULL_REQUEST_BODY: :wave: Run.pdf |
||||
|
PULL_REQUEST_REVIEWERS: scottypate |
||||
|
Loading…
Reference in new issue