Skip to content

Commit ffa8cc2

Browse files
authored
docs: Skip follow-up steps if there is no pull request (#1083)
1 parent 00fb690 commit ffa8cc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Note that in order to read the step outputs the action step must have an id.
9090
id: cpr
9191
uses: peter-evans/create-pull-request@v3
9292
- name: Check outputs
93+
if: ${{ steps.cpr.outputs.pull-request-number }}
9394
run: |
9495
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
9596
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
@@ -191,6 +192,7 @@ To create a project card for the pull request, pass the `pull-request-number` st
191192
uses: peter-evans/create-pull-request@v3
192193
193194
- name: Create or Update Project Card
195+
if: ${{ steps.cpr.outputs.pull-request-number }}
194196
uses: peter-evans/create-or-update-project-card@v1
195197
with:
196198
project-name: My project

0 commit comments

Comments
 (0)