docs: Skip follow-up steps if there is no pull request (#1083)
This commit is contained in:
parent
00fb6900cb
commit
ffa8cc2261
|
@ -90,6 +90,7 @@ Note that in order to read the step outputs the action step must have an id.
|
||||||
id: cpr
|
id: cpr
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
- name: Check outputs
|
- name: Check outputs
|
||||||
|
if: ${{ steps.cpr.outputs.pull-request-number }}
|
||||||
run: |
|
run: |
|
||||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
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
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
|
|
||||||
- name: Create or Update Project Card
|
- name: Create or Update Project Card
|
||||||
|
if: ${{ steps.cpr.outputs.pull-request-number }}
|
||||||
uses: peter-evans/create-or-update-project-card@v1
|
uses: peter-evans/create-or-update-project-card@v1
|
||||||
with:
|
with:
|
||||||
project-name: My project
|
project-name: My project
|
||||||
|
|
Loading…
Reference in a new issue