mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-15 01:24:28 +08:00
workflow: Send no notification on Slack
This is somehow useless as secrets are not passed to action runners when the workflow is triggered from a forked repository (for obvious reasons)
This commit is contained in:
parent
4f40aee133
commit
be7e05bf46
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
|
@ -41,33 +41,3 @@ jobs:
|
||||||
tests/run.fish
|
tests/run.fish
|
||||||
pushd pkg/fish-spec; fish -c 'fish-spec'; popd
|
pushd pkg/fish-spec; fish -c 'fish-spec'; popd
|
||||||
pushd pkg/omf; fish -c 'fish-spec'; popd
|
pushd pkg/omf; fish -c 'fish-spec'; popd
|
||||||
|
|
||||||
notify-success:
|
|
||||||
needs: [build]
|
|
||||||
if: success()
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Notify on Slack
|
|
||||||
uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
|
|
||||||
env:
|
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
|
||||||
SLACK_ICON: false
|
|
||||||
SLACK_COLOR: good
|
|
||||||
SLACK_USERNAME: GitHub Actions
|
|
||||||
SLACK_TITLE: Build Success
|
|
||||||
SLACK_FOOTER: ""
|
|
||||||
|
|
||||||
notify-failure:
|
|
||||||
needs: [build]
|
|
||||||
if: failure()
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Notify on Slack
|
|
||||||
uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
|
|
||||||
env:
|
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
|
||||||
SLACK_ICON: false
|
|
||||||
SLACK_COLOR: danger
|
|
||||||
SLACK_USERNAME: GitHub Actions
|
|
||||||
SLACK_TITLE: Build Failure
|
|
||||||
SLACK_FOOTER: ""
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user