Skip to content

Commit

Permalink
docs: Skip follow-up steps if there is no pull request (peter-evans#1083
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hartwork authored and aleksandrychev committed Mar 4, 2024
1 parent 7fdc324 commit de2e22f
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 @@ -95,6 +95,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 @@ -196,6 +197,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 de2e22f

Please sign in to comment.