We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 832e237 commit 76dbe1bCopy full SHA for 76dbe1b
.github/workflows/pr-deploy.yaml
@@ -45,13 +45,17 @@ jobs:
45
outputs:
46
PR_OPEN: ${{ steps.check_pr.outputs.pr_open }}
47
steps:
48
+ - name: Checkout
49
+ uses: actions/checkout@v2
50
+
51
- name: Check if PR is open
52
id: check_pr
53
run: |
54
set -euo pipefail
- if [[ $(gh pr view --json state | jq -r '.state') != "OPEN" ]]; then
- echo "a PR is not open. skipping"
- pr_open=$(gh pr view --json state | jq -r '.state' != "OPEN")
55
+ pr_open=$(gh pr view --json state | jq -r '.state' != "OPEN")
56
+ if [[ "$pr_open" == "true" ]]; then
57
+ echo "PR is closed. Exiting."
58
+ exit 0
59
fi
60
echo "pr_open=$pr_open" >> $GITHUB_OUTPUT
61
env:
0 commit comments