Skip to content

Commit

Permalink
fixup! Add automatic PR action
Browse files Browse the repository at this point in the history
  • Loading branch information
pganssle committed Sep 23, 2024
1 parent c3ea8a8 commit 4ad2601
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_EXISTS=$(gh pr list --search "Update tzdata to version" --json number --jq '.[] | .number')
PR_EXISTS=$(gh pr --repo $GITHUB_REPOSITORY \
list --search "Update tzdata to version" \
--json number --jq '.[] | .number')
if [ -n "$PR_EXISTS" ]; then
echo "A PR updating the tzdata version already exists, see http://github.com/python/tzdata/pulls/${PR_EXISTS}"
exit 0
Expand Down

0 comments on commit 4ad2601

Please sign in to comment.