Skip to content

Commit 6ff324b

Browse files
authored
ci: change slack message on nightly failed (#1731)
1 parent d618a43 commit 6ff324b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
"type": "section",
6464
"text": {
6565
"type": "mrkdwn",
66-
"text": "'"Nightly workflow failed: https://github.com/scaleway/terraform-provider-scaleway/actions/runs/${GITHUB_WORKFLOW_ID}"'"
66+
"text": "'"Nightly workflow failed: <https://github.com/scaleway/terraform-provider-scaleway/actions/runs/${GITHUB_WORKFLOW_ID}|${FAILED_PRODUCT}>"'"
6767
}
6868
}
6969
]
@@ -72,7 +72,8 @@ jobs:
7272
done
7373
env:
7474
SLACK_WEBHOOK_NIGHTLY: ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
75-
GITHUB_WORKFLOW_ID: ${{ github.workflow }}
75+
GITHUB_WORKFLOW_ID: ${{ github.run.id }}
76+
FAILED_PRODUCT: ${{ matrix.products }}
7677

7778
# sweeper needs to run after nightly completed
7879
# no matter what are the results of the jobs

0 commit comments

Comments
 (0)