Skip to content

Commit 38460af

Browse files
authored
Merge pull request #1188 from numbersprotocol/feature-slack-notification
ci(.github/workflows/Dev-test.yml): add slack notification when devel…
2 parents 99581ad + 3cd7442 commit 38460af

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,32 @@ jobs:
128128
run: |
129129
npx cap sync ios
130130
xcodebuild archive -workspace ios/App/App.xcworkspace -scheme App -sdk iphoneos -configuration Debug -archivePath build/App.xcarchive -showBuildTimingSummary -allowProvisioningUpdates archive
131+
132+
notification-success:
133+
runs-on: ubuntu-latest
134+
needs: test
135+
136+
steps:
137+
- uses: actions/checkout@v2
138+
139+
- name: Slack Notification
140+
uses: rtCamp/action-slack-notify@v2
141+
if: ${{ github.ref == 'refs/heads/develop' || github.event.pull_request.base.ref == 'develop'}}
142+
env:
143+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
144+
SLACK_COLOR: 'success'
145+
146+
notification-failure:
147+
runs-on: ubuntu-latest
148+
needs: test
149+
if: ${{ failure() }}
150+
151+
steps:
152+
- uses: actions/checkout@v2
153+
154+
- name: Slack Notification
155+
uses: rtCamp/action-slack-notify@v2
156+
if: ${{ github.ref == 'refs/heads/develop' || github.event.pull_request.base.ref == 'develop'}}
157+
env:
158+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
159+
SLACK_COLOR: 'failure'

0 commit comments

Comments
 (0)