Skip to content

Commit

Permalink
fix: create new docs building workflow PRs when PR status is not OPEN (
Browse files Browse the repository at this point in the history
  • Loading branch information
oxcabe authored Jan 8, 2024
1 parent f1b9a28 commit d813e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-docs-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
if: steps.changes.outputs.changed == 'true'
run: |
PR_EXISTS=$(gh pr view actions-generate-docs --json state -q '.state' || echo "no")
if [ "$PR_EXISTS" = "no" ] || [ "$PR_EXISTS" = "CLOSED" ]; then
if [ "$PR_EXISTS" = "no" ] || [ "$PR_EXISTS" != "OPEN" ]; then
gh pr create --base main --title "chore(docs): generate documentation" \
--body "This is an auto-generated PR for documentation updates made by GitHub Actions." \
--head actions-generate-docs
Expand Down

1 comment on commit d813e3e

@vercel
Copy link

@vercel vercel bot commented on d813e3e Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.