Skip to content

Commit

Permalink
docs: Skip follow-up steps if there is no pull request (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork authored Mar 9, 2022
1 parent 00fb690 commit ffa8cc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Note that in order to read the step outputs the action step must have an id.
id: cpr
uses: peter-evans/create-pull-request@v3
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
Expand Down Expand Up @@ -191,6 +192,7 @@ To create a project card for the pull request, pass the `pull-request-number` st
uses: peter-evans/create-pull-request@v3
- name: Create or Update Project Card
if: ${{ steps.cpr.outputs.pull-request-number }}
uses: peter-evans/create-or-update-project-card@v1
with:
project-name: My project
Expand Down

0 comments on commit ffa8cc2

Please sign in to comment.