Skip to content

Commit 3714176

Browse files
authored
Update slack notification (#59)
1 parent 91001df commit 3714176

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

.github/workflows/master.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
name: ${{ matrix.language }}-sdk
6868
path: ${{ github.workspace}}/sdk/${{ matrix.language }}
69-
- if: failure()
69+
- if: failure() && github.event_name == 'push'
7070
name: Notify Slack
7171
uses: 8398a7/action-slack@v3
7272
with:
@@ -115,7 +115,7 @@ jobs:
115115
uses: pulumi/action-install-pulumi-cli@releases/v1
116116
- name: Run golangci
117117
run: make -f Makefile.github lint_provider
118-
- if: failure()
118+
- if: failure() && github.event_name == 'push'
119119
name: Notify Slack
120120
uses: 8398a7/action-slack@v3
121121
with:
@@ -149,7 +149,7 @@ jobs:
149149
uses: pulumi/action-install-pulumi-cli@releases/v1
150150
- name: Run golangci
151151
run: cd sdk/go/postgresql && golangci-lint run -c ../../../.golangci.yml
152-
- if: failure()
152+
- if: failure() && github.event_name == 'push'
153153
name: Notify Slack
154154
uses: 8398a7/action-slack@v3
155155
with:
@@ -186,7 +186,7 @@ jobs:
186186
with:
187187
name: pulumi-${{ env.PROVIDER }}
188188
path: ${{ github.workspace }}/bin
189-
- if: failure()
189+
- if: failure() && github.event_name == 'push'
190190
name: Notify Slack
191191
uses: 8398a7/action-slack@v3
192192
with:
@@ -247,7 +247,7 @@ jobs:
247247
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
248248
name: Publish SDKs
249249
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
250-
- if: failure()
250+
- if: failure() && github.event_name == 'push'
251251
name: Notify Slack
252252
uses: 8398a7/action-slack@v3
253253
with:
@@ -315,7 +315,7 @@ jobs:
315315
- name: Run tests
316316
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language
317317
}} -parallel 4 .
318-
- if: failure()
318+
- if: failure() && github.event_name == 'push'
319319
name: Notify Slack
320320
uses: 8398a7/action-slack@v3
321321
with:

.github/workflows/prerelease.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
name: ${{ matrix.language }}-sdk
6868
path: ${{ github.workspace}}/sdk/${{ matrix.language }}
69-
- if: failure()
69+
- if: failure() && github.event_name == 'push'
7070
name: Notify Slack
7171
uses: 8398a7/action-slack@v3
7272
with:
@@ -115,7 +115,7 @@ jobs:
115115
uses: pulumi/action-install-pulumi-cli@releases/v1
116116
- name: Run golangci
117117
run: make -f Makefile.github lint_provider
118-
- if: failure()
118+
- if: failure() && github.event_name == 'push'
119119
name: Notify Slack
120120
uses: 8398a7/action-slack@v3
121121
with:
@@ -149,7 +149,7 @@ jobs:
149149
uses: pulumi/action-install-pulumi-cli@releases/v1
150150
- name: Run golangci
151151
run: cd sdk/go/postgresql && golangci-lint run -c ../../../.golangci.yml
152-
- if: failure()
152+
- if: failure() && github.event_name == 'push'
153153
name: Notify Slack
154154
uses: 8398a7/action-slack@v3
155155
with:
@@ -186,7 +186,7 @@ jobs:
186186
with:
187187
name: pulumi-${{ env.PROVIDER }}
188188
path: ${{ github.workspace }}/bin
189-
- if: failure()
189+
- if: failure() && github.event_name == 'push'
190190
name: Notify Slack
191191
uses: 8398a7/action-slack@v3
192192
with:
@@ -277,7 +277,7 @@ jobs:
277277
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
278278
name: Publish SDKs
279279
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
280-
- if: failure()
280+
- if: failure() && github.event_name == 'push'
281281
name: Notify Slack
282282
uses: 8398a7/action-slack@v3
283283
with:
@@ -345,7 +345,7 @@ jobs:
345345
- name: Run tests
346346
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language
347347
}} -parallel 4 .
348-
- if: failure()
348+
- if: failure() && github.event_name == 'push'
349349
name: Notify Slack
350350
uses: 8398a7/action-slack@v3
351351
with:

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
name: ${{ matrix.language }}-sdk
6868
path: ${{ github.workspace}}/sdk/${{ matrix.language }}
69-
- if: failure()
69+
- if: failure() && github.event_name == 'push'
7070
name: Notify Slack
7171
uses: 8398a7/action-slack@v3
7272
with:
@@ -115,7 +115,7 @@ jobs:
115115
uses: pulumi/action-install-pulumi-cli@releases/v1
116116
- name: Run golangci
117117
run: make -f Makefile.github lint_provider
118-
- if: failure()
118+
- if: failure() && github.event_name == 'push'
119119
name: Notify Slack
120120
uses: 8398a7/action-slack@v3
121121
with:
@@ -149,7 +149,7 @@ jobs:
149149
uses: pulumi/action-install-pulumi-cli@releases/v1
150150
- name: Run golangci
151151
run: cd sdk/go/postgresql && golangci-lint run -c ../../../.golangci.yml
152-
- if: failure()
152+
- if: failure() && github.event_name == 'push'
153153
name: Notify Slack
154154
uses: 8398a7/action-slack@v3
155155
with:
@@ -186,7 +186,7 @@ jobs:
186186
with:
187187
name: pulumi-${{ env.PROVIDER }}
188188
path: ${{ github.workspace }}/bin
189-
- if: failure()
189+
- if: failure() && github.event_name == 'push'
190190
name: Notify Slack
191191
uses: 8398a7/action-slack@v3
192192
with:
@@ -254,7 +254,7 @@ jobs:
254254
- name: Run tests
255255
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language
256256
}} -parallel 4 .
257-
- if: failure()
257+
- if: failure() && github.event_name == 'push'
258258
name: Notify Slack
259259
uses: 8398a7/action-slack@v3
260260
with:

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
name: ${{ matrix.language }}-sdk
6868
path: ${{ github.workspace}}/sdk/${{ matrix.language }}
69-
- if: failure()
69+
- if: failure() && github.event_name == 'push'
7070
name: Notify Slack
7171
uses: 8398a7/action-slack@v3
7272
with:
@@ -128,7 +128,7 @@ jobs:
128128
uses: pulumi/action-install-pulumi-cli@releases/v1
129129
- name: Run golangci
130130
run: make -f Makefile.github lint_provider
131-
- if: failure()
131+
- if: failure() && github.event_name == 'push'
132132
name: Notify Slack
133133
uses: 8398a7/action-slack@v3
134134
with:
@@ -162,7 +162,7 @@ jobs:
162162
uses: pulumi/action-install-pulumi-cli@releases/v1
163163
- name: Run golangci
164164
run: cd sdk/go/postgresql && golangci-lint run -c ../../../.golangci.yml
165-
- if: failure()
165+
- if: failure() && github.event_name == 'push'
166166
name: Notify Slack
167167
uses: 8398a7/action-slack@v3
168168
with:
@@ -199,7 +199,7 @@ jobs:
199199
with:
200200
name: pulumi-${{ env.PROVIDER }}
201201
path: ${{ github.workspace }}/bin
202-
- if: failure()
202+
- if: failure() && github.event_name == 'push'
203203
name: Notify Slack
204204
uses: 8398a7/action-slack@v3
205205
with:
@@ -297,7 +297,7 @@ jobs:
297297
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
298298
name: Publish SDKs
299299
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
300-
- if: failure()
300+
- if: failure() && github.event_name == 'push'
301301
name: Notify Slack
302302
uses: 8398a7/action-slack@v3
303303
with:
@@ -365,7 +365,7 @@ jobs:
365365
- name: Run tests
366366
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language
367367
}} -parallel 4 .
368-
- if: failure()
368+
- if: failure() && github.event_name == 'push'
369369
name: Notify Slack
370370
uses: 8398a7/action-slack@v3
371371
with:

0 commit comments

Comments
 (0)