diff --git a/.github/workflows/check-for-updates.yml b/.github/workflows/check-for-updates.yml index 3f81bfa..4126a49 100644 --- a/.github/workflows/check-for-updates.yml +++ b/.github/workflows/check-for-updates.yml @@ -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