Skip to content

Commit 3cdd946

Browse files
committed
2 parents 5986319 + 106bb08 commit 3cdd946

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ An example of a workflow for some documentation.
121121

122122
name: Docs to PDF
123123
# This workflow is triggered on pushes to the repository.
124-
on: [push]
124+
on:
125+
push:
126+
branches:
127+
- master
125128

126129
jobs:
127130
converttopdf:
@@ -130,10 +133,8 @@ jobs:
130133
steps:
131134
- uses: actions/checkout@v2
132135
- uses: baileyjm02/markdown-to-pdf@master
133-
# Only continue past here when pushed to master
134-
if: github.ref == 'refs/heads/master'
135136
with:
136-
markdown_dir: docs
137+
input_dir: docs
137138
output_dir: pdfs
138139
images_dir: docs/images
139140
# for example <img src="./images/file-name.png">
@@ -144,7 +145,7 @@ jobs:
144145
with:
145146
name: docs
146147
path: pdfs
147-
```
148+
148149
````
149150

150151
## Contributions

0 commit comments

Comments
 (0)