Skip to content

Commit fd1df61

Browse files
authored
Add Apnotic Chat (Campfire) notifications (#3960)
1 parent 5110580 commit fd1df61

5 files changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/brakeman.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ jobs:
5757
uses: github/codeql-action/upload-sarif@v4
5858
with:
5959
sarif_file: output.sarif.json
60+
61+
- name: Post job failure details to Campfire
62+
if: failure() && github.ref == 'refs/heads/master'
63+
uses: shane-lamb/campfire-notify-action@v1.1.6
64+
with:
65+
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
66+
template: job_failed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Post commit info to Campfire
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
post-commit-info:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Post commit info to Campfire
12+
uses: shane-lamb/campfire-notify-action@v1.1.6
13+
with:
14+
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
15+
template: commit_pushed

.github/workflows/docker-containers.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ jobs:
7373
type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush:buildcache,mode=max,ignore-error=${{env.DOCKER_PUSH == 'false'}}
7474
type=gha,mode=max
7575
76+
- name: Post job failure details to Campfire
77+
if: failure() && github.ref == 'refs/heads/master'
78+
uses: shane-lamb/campfire-notify-action@v1.1.6
79+
with:
80+
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
81+
template: job_failed
82+
7683

7784
public-gateway-container:
7885
if: github.event.label && github.event.label.name == 'docker' || github.event_name != 'pull_request_target'
@@ -128,6 +135,13 @@ jobs:
128135
type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush-public-gateway:buildcache,mode=max,ignore-error=${{env.DOCKER_PUSH == 'false'}}
129136
type=gha,mode=max
130137
138+
- name: Post job failure details to Campfire
139+
if: failure() && github.ref == 'refs/heads/master'
140+
uses: shane-lamb/campfire-notify-action@v1.1.6
141+
with:
142+
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
143+
template: job_failed
144+
131145
worker-container:
132146
if: github.event.label && github.event.label.name == 'docker' || github.event_name != 'pull_request_target'
133147
needs: pwpush-container
@@ -181,3 +195,10 @@ jobs:
181195
cache-to: |
182196
type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush-worker:buildcache,mode=max,ignore-error=${{env.DOCKER_PUSH == 'false'}}
183197
type=gha,mode=max
198+
199+
- name: Post job failure details to Campfire
200+
if: failure() && github.ref == 'refs/heads/master'
201+
uses: shane-lamb/campfire-notify-action@v1.1.6
202+
with:
203+
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
204+
template: job_failed

.github/workflows/lint-helm.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@ jobs:
4545
- name: Run chart-testing (install)
4646
if: steps.list-changed.outputs.changed == 'true'
4747
run: ct install --config ./ct.yaml --target-branch ${{ github.event.repository.default_branch }}
48+
49+
- name: Post job failure details to Campfire
50+
if: failure() && github.ref == 'refs/heads/master'
51+
uses: shane-lamb/campfire-notify-action@v1.1.6
52+
with:
53+
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
54+
template: job_failed

.github/workflows/ruby-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,9 @@ jobs:
8686
path: ${{ github.workspace }}/tmp/screenshots
8787
if-no-files-found: ignore
8888

89+
- name: Post job failure details to Campfire
90+
if: failure() && github.ref == 'refs/heads/master'
91+
uses: shane-lamb/campfire-notify-action@v1.1.6
92+
with:
93+
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
94+
template: job_failed

0 commit comments

Comments
 (0)