Skip to content

Commit 5fa159a

Browse files
committed
fix slack message and git user/email
1 parent 3b3c129 commit 5fa159a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/bump-golang.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,26 @@ jobs:
2828
run: updatecli apply --config .github/updatecli-bump-golang.yml
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GIT_USER: "github-actions[bot]"
32+
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
3133

3234
- if: ${{ failure() }}
3335
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
3436
with:
3537
channel-id: '#ingest-notifications'
36-
payload: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"
38+
payload: |
39+
{
40+
"text": "${{ env.SLACK_MESSAGE }}",
41+
"blocks": [
42+
{
43+
"type": "section",
44+
"text": {
45+
"type": "mrkdwn",
46+
"text": "${{ env.SLACK_MESSAGE }}"
47+
}
48+
}
49+
]
50+
}
3751
env:
3852
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
53+
SLACK_MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"

0 commit comments

Comments
 (0)