File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,21 @@ jobs:
94
94
Please review this PR carefully before merging it.'
95
95
96
96
output=$(gh pr create --base master --title "docs: clean up librarium unused images " --body "$pr_body" --label "$backport_labels")
97
- echo $output
98
97
pr_url=$(echo "$output" | grep -o "https://[^ ]*")
99
- echo $pr_url
100
-
101
- echo "CREATED_CLEANUP_PR=pr_url" >> $GITHUB_ENV
102
-
103
- echo "PR successfully created $CREATED_CLEANUP_PR."
98
+ echo "PR successfully created $pr_url."
104
99
100
+ echo "GITHUB_CREATED_CLEANUP_PR=$pr_url" >> $GITHUB_ENV
105
101
env :
106
102
GH_TOKEN : ${{ steps.import-secrets.outputs.VAULT_GITHUB_TOKEN }}
107
103
104
+ - name : Slack Notification
105
+ if : $GITHUB_CREATED_CLEANUP_PR != ""
106
+
107
+ env :
108
+ SLACK_WEBHOOK : ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }}
109
+ SLACK_USERNAME : " spectromate"
110
+ SLACK_ICON_EMOJI : " :ok_hand:"
111
+ SLACK_COLOR : ${{ job.status }}
112
+ SLACKIFY_MARKDOWN : true
113
+ ENABLE_ESCAPES : true
114
+ SLACK_MESSAGE : ' A new PR with unused images to clean up was created. Please review $env.GITHUB_CREATED_CLEANUP_PR for more details.'
You can’t perform that action at this time.
0 commit comments