Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Use env var indirection in `team-issues-slack-notification` (#70291)

mendral-app[bot]08e62e754dbc
diff --git a/.github/workflows/team-issues-slack-notification.yml b/.github/workflows/team-issues-slack-notification.yml
index 772eb24e636..e0e9a23eeed 100644
--- a/.github/workflows/team-issues-slack-notification.yml
+++ b/.github/workflows/team-issues-slack-notification.yml
@@ -22,11 +22,13 @@ jobs:
core.setOutput('issue_title', JSON.stringify(${{ toJson(github.event.issue.title) }} + '\n' + ${{ toJson(github.event.issue.html_url) }}));
- name: Extracting team name
id: team_name
+ env:
+ LABEL_NAME: ${{ github.event.label.name }}
run: |
- team_label=$(sed 's/&/\$/g' <<< '${{ github.event.label.name }}')
- echo $team_label
+ team_label=$(sed 's/&/\$/g' <<< "$LABEL_NAME")
+ echo "$team_label"
team_name=${team_label#*.Team/}
- echo $team_name
+ echo "$team_name"
echo "team_name=${team_name^^}_SLACK_ISSUES_WEBHOOK_URL" >> "$GITHUB_OUTPUT"
- name: Check webhook secret exists
id: check_secret