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 authored Aug 29, 2024
1 parent 0270d6b commit b6198ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/generate_issue_number.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Check issue title
id: check_issue_title
run: |
ISSUE_TITLE=$(printf '%q' "${{ github.event.issue.title }}")
ISSUE_TITLE=$(echo "${{ github.event.issue.title }}" | sed 's/`/\\`/g')
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 b6198ac

Please sign in to comment.