Skip to content

Commit

Permalink
Improve GHA issue title var extrapolation.
Browse files Browse the repository at this point in the history
Originally filed via
#459 by @NaorYaa

We want to declare immutable variables before the "run" section of GHA
workflows.

Change-Id: I6866fe935d9bb589f66f9348f00b88afb677f95b
  • Loading branch information
sadsfae committed Oct 11, 2023
1 parent e78c7b9 commit 1b1a17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/issuetracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
echo "Using issue_title: $issue_title"
- name: Google Chat Notification
run: |
export issue_title=$(echo "${{ github.event.issue.title }}" | sed -e "s/'//g" -e 's/"//g')
export issue_title=$(echo "$ISSUE_TITLE" | sed -e "s/'//g" -e 's/"//g')
curl --location --request POST '${{ secrets.WEBHOOK }}' \
--header 'Content-Type: application/json; charset=UTF-8' \
--data "{'text': '[${{ github.event.issue.number }}] ${{ github.event.issue.html_url }} $issue_title (${{ github.event.issue.user.login }})'}"

0 comments on commit 1b1a17b

Please sign in to comment.