File tree 2 files changed +24
-18
lines changed
2 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -113,16 +113,20 @@ jobs:
113
113
artifact-path : org/springframework/security/spring-security-core
114
114
slack-announcing-id : spring-security-announcing
115
115
secrets : inherit
116
- send-notification :
117
- name : Send Notification
116
+ notify_result :
117
+ name : Check for failures
118
118
needs : [ perform-release ]
119
119
if : failure()
120
120
runs-on : ubuntu-latest
121
+ permissions :
122
+ actions : read
121
123
steps :
122
- - name : Send Notification
123
- uses : spring-io/spring-security-release-tools/.github/actions/send-notification@v1
124
+ - name : Send Slack message
125
+ # Workaround while waiting for Gamesight/slack-workflow-status#38 to be fixed
126
+ # See https://github.com/Gamesight/slack-workflow-status/issues/38
127
+ uses : sjohnr/slack-workflow-status@v1-beta
124
128
with :
125
- webhook-url : ${{ secrets.SPRING_SECURITY_CI_GCHAT_WEBHOOK_URL }}
126
- status : ${{ job.status }}
127
- build-scan-url : ${{ steps.build-and-publish.outputs.build-scan-url }}
128
- run- name : ${{ format('spring-security/{0}', github.ref_name) }}
129
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
130
+ slack_webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
131
+ channel : ' #spring-security-ci '
132
+ name : ' CI Notifier '
Original file line number Diff line number Diff line change 8
8
permissions :
9
9
contents : read
10
10
jobs :
11
- spring-releasetrain-checks :
11
+ spring-releasetrain-checks :
12
12
name : Check DueOn is on a Release Date
13
13
runs-on : ubuntu-latest
14
14
if : ${{ github.repository == 'spring-projects/spring-security' }}
@@ -23,16 +23,18 @@ jobs:
23
23
export TOOL_VERSION=0.1.1
24
24
wget "https://repo.maven.apache.org/maven2/io/spring/releasetrain/spring-release-train-tools/$TOOL_VERSION/spring-release-train-tools-$TOOL_VERSION.jar"
25
25
java -cp "spring-release-train-tools-$TOOL_VERSION.jar" io.spring.releasetrain.CheckMilestoneDueOnMain --dueOn "$DUE_ON" --expectedDayOfWeek MONDAY --expectedMondayCount 3
26
- send-notification :
27
- name : Send Notification
28
- needs : [ spring-releasetrain-checks ]
26
+ notify_result :
27
+ name : Check for failures
28
+ needs : [spring-releasetrain-checks]
29
29
if : failure()
30
30
runs-on : ubuntu-latest
31
+ permissions :
32
+ actions : read
31
33
steps :
32
- - name : Send Notification
33
- uses : spring-io/spring-security-release-tools/.github/actions/send-notification @v1
34
+ - name : Send Slack message
35
+ uses : Gamesight/slack-workflow-status @v1.3.0
34
36
with :
35
- webhook-url : ${{ secrets.SPRING_SECURITY_CI_GCHAT_WEBHOOK_URL }}
36
- status : ${{ job.status }}
37
- build-scan-url : ${{ steps.build-and-publish.outputs.build-scan-url }}
38
- run- name : ${{ format('spring-security/{0}', github.ref_name) }}
37
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
38
+ slack_webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
39
+ channel : ' #spring-security-ci '
40
+ name : ' CI Notifier '
You can’t perform that action at this time.
0 commit comments