Skip to content

Commit 1c43bf2

Browse files
committed
IEP-1728: Fix shell expansion issue
1 parent 0eb9e44 commit 1c43bf2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/jira-pr-comment.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ jobs:
2222
add-pr-comment-to-jira:
2323
name: Add PR Comment to Jira
2424
runs-on: ubuntu-latest
25+
permissions: {}
2526
steps:
2627
- name: Extract Jira Issue Key from PR Title
2728
id: extract
29+
env:
30+
PR_TITLE: ${{ github.event.pull_request.title }}
2831
run: |
29-
TITLE="${{ github.event.pull_request.title }}"
30-
echo "PR Title: $TITLE"
32+
echo "PR Title: $PR_TITLE"
3133
3234
# Match pattern: IEP-12345: description
33-
if [[ "$TITLE" =~ ^(IEP-[0-9]+): ]]; then
35+
if [[ "$PR_TITLE" =~ ^(IEP-[0-9]+): ]]; then
3436
ISSUE_KEY="${BASH_REMATCH[1]}"
3537
echo "Found Jira issue key: $ISSUE_KEY"
3638
echo "issue_key=$ISSUE_KEY" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)