diff --git a/.github/workflows/auto-pr.yml b/.github/workflows/auto-pr.yml index e4d0ef0..aceb205 100644 --- a/.github/workflows/auto-pr.yml +++ b/.github/workflows/auto-pr.yml @@ -18,10 +18,9 @@ jobs: if [[ ${{ github.ref_name }} =~ puzzle/([0-9]{4})-day-([1-9]|1[0-9]|2[0-5]) ]]; then year=${BASH_REMATCH[1]} day=${BASH_REMATCH[2]} - echo $year - echo $day - issue_number=$(gh issue list -S '[$year] [Day $day] in:title' --json number | jq '.[].number') + issue_number=$(gh issue list -S '[$year] [Day $day] in:title' --json number | jq '.[].number') + echo $issue_number if [ -z "$issue_number" ]; then echo "::error::Issue not found!" exit 1