chore: Escape title in check duplicates job

This commit is contained in:
Christian Kußowski 2025-11-19 08:44:09 +01:00
parent 419f57a14c
commit b72ea373de
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -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