Skip to content

Commit

Permalink
fix: check if PR exists
Browse files Browse the repository at this point in the history
  • Loading branch information
undead404 committed Mar 21, 2024
1 parent 3d88afa commit 146f9f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
--head ${GITHUB_REF#refs/heads/} \
--base 'master' \
--json title \
--jq 'length')
--verbose
--jq 'length') || 0
echo $prs
if ((prs > 0)); then
echo "skip=false" >> "$GITHUB_OUTPUT"
echo "skip=true" >> "$GITHUB_OUTPUT"
else
echo "PR exists"
echo "skip=true" >> "$GITHUB_OUTPUT"
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- env:
GH_TOKEN: ${{ secrets.CONTENT_GITHUB_TOKEN }}
Expand Down

0 comments on commit 146f9f5

Please sign in to comment.