From 8584a3dba9f231303b772069057c978ec4a5296c Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 8 Mar 2022 20:57:13 +0100 Subject: [PATCH] README.md: Skip follow-up steps if there is no pull request --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c3c8bcf7e4..c0e7665a65 100644 --- a/README.md +++ b/README.md @@ -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 }}" @@ -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