Skip to content

Commit

Permalink
Merge pull request #548 from hazelops/IZE-380-brew-install-apt-get-in…
Browse files Browse the repository at this point in the history
…stall-tests

Add failure notification
  • Loading branch information
kobrikx authored Dec 14, 2022
2 parents b16864f + 62046a4 commit 7775e63
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/run.brew-and-apt-install-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ jobs:
brew install ize
- name: Run Ize and compare version
id: izeMacTests
run: ize --version | grep ${{needs.get_release_version.outputs.release}}

- name: Run Slack Failure Notification
if: failure() && steps.izeMacTests.outcome == 'failure'
run: |
curl -X POST --data-urlencode "payload={\"channel\": \"#core-tools\", \"username\": \"webhookbot\", \"text\": \":x: IZE installation in macOS failed - please check $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID for more info\", \"icon_emoji\": \":ghost:\"}" ${{ secrets.SLACK_WEBHOOK }}
install_ize_ubuntu:
name: Install On Ubuntu Latest
runs-on: ubuntu-latest
Expand All @@ -58,4 +64,10 @@ jobs:
sudo apt-get install ize
- name: Run Ize and compare version
id: izeUbuntuTests
run: ize --version | grep ${{needs.get_release_version.outputs.release}}

- name: Run Slack Failure Notification
if: failure() && steps.izeUbuntuTests.outcome == 'failure'
run: |
curl -X POST --data-urlencode "payload={\"channel\": \"#core-tools\", \"username\": \"webhookbot\", \"text\": \":x: IZE installation in Ubuntu failed - please check $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID for more info\", \"icon_emoji\": \":ghost:\"}" ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 7775e63

Please sign in to comment.