chore: Escape title in check duplicates job
This commit is contained in:
parent
419f57a14c
commit
b72ea373de
1 changed files with 2 additions and 1 deletions
3
.github/workflows/check_duplicates.yaml
vendored
3
.github/workflows/check_duplicates.yaml
vendored
|
|
@ -16,7 +16,8 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
- name: Check duplicates
|
||||
run: |
|
||||
issues=$(gh issue list --search '${{ env.title }}' --json number,title,url)
|
||||
title=$(printf %q "${{ env.title }}")
|
||||
issues=$(gh issue list --search '${{ title }}' --json number,title,url)
|
||||
number=${{ env.number }}
|
||||
issues_filtered=$(echo "$issues" | jq --arg num "$number" 'map(select(.number != ($num | tonumber)))')
|
||||
if [ "$(echo "$issues_filtered" | jq length)" -eq 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue