Skip to content

Commit

Permalink
Fixed action breaking when special characters are used
Browse files Browse the repository at this point in the history
  • Loading branch information
SHIV5T3R committed Aug 29, 2024
1 parent 0270d6b commit 00265d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/generate_issue_number.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Check issue title
id: check_issue_title
run: |
ISSUE_TITLE=$(printf '%q' "${{ github.event.issue.title }}")
ISSUE_TITLE=$(printf "%s" "${{ github.event.issue.title//\`/\\\`}}")
ISSUE_TITLE=$(printf "%s" "${ISSUE_TITLE//\"/\\\"}")
if [[ "$ISSUE_TITLE" =~ ^Y[0-9]{2}-[0-9]{3,4} ]]; then
echo "VALID_TITLE=true" >> $GITHUB_OUTPUT
else
Expand Down

0 comments on commit 00265d5

Please sign in to comment.