diff --git a/.github/workflows/create-token-pr.yaml b/.github/workflows/create-token-pr.yaml index 48ec07dd2d..8abcf3bd1d 100644 --- a/.github/workflows/create-token-pr.yaml +++ b/.github/workflows/create-token-pr.yaml @@ -69,8 +69,8 @@ jobs: - name: Get PR id: pr run: | - echo "$(gh pr list --head "${PR_BRANCH}")" - if [[ -n $(gh pr list --state open --head "${PR_BRANCH}") ]]; then + echo "$(gh pr list --head "${{ steps.pr-branch.outputs.name }}")" + if [[ -n $(gh pr list --head "${{ steps.pr-branch.outputs.name }}") ]]; then echo "exists=true" >> $GITHUB_OUTPUT else echo "exists=false" >> $GITHUB_OUTPUT