Skip to content

Commit

Permalink
use oncall tag from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
oarbusi committed Mar 22, 2024
1 parent 0bb3032 commit 5a7944f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform-compatibility-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Get content of slack message
id: slack-payload
run: |
slack_message=$(./scripts/generate-slack-notification-content.sh ${{ needs.run-test-supported-versions.result }} ${{github.server_url}} ${{github.repository}} ${{github.run_id}})
slack_message=$(./scripts/generate-slack-notification-content.sh ${{ needs.run-test-supported-versions.result }} ${{ secrets.SLACK_ONCALL_TAG }} ${{github.server_url}} ${{github.repository}} ${{github.run_id}})
echo "slack_payload=${slack_message}" >> "${GITHUB_OUTPUT}"
- name: Send Slack message
id: slack
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Test Suite failed* @apix-integrations-on-call"
"text": "*Test Suite failed* ${{ secrets.SLACK_ONCALL_TAG }}"
}
},
{
Expand Down
8 changes: 4 additions & 4 deletions scripts/generate-slack-notification-content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ if [ "$1" == "success" ]; then
else
text_value=":red_circle: HashiCorp Terraform Compatibility Matrix failed"
action_text="Failed action"
oncall_tag="@apix-integrations-on-call"
oncall_tag=$2
fi

server_url=$2
repository=$3
run_id=$4
server_url=$3
repository=$4
run_id=$5

json="{
\"text\": \"$text_value\",
Expand Down

0 comments on commit 5a7944f

Please sign in to comment.