forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only run github action slack notification on push to main branch
Currently the slack notification posts in #capi-fail anytime pull requests fail github actions as well. This is noisy, as we frequently have draft PRs and automated dependency bump PRs that do not pass github actions. [#180955330]
- Loading branch information
1 parent
b7eab8f
commit 719f170
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
- name: Run Rubocop | ||
run: bundle exec rake rubocop | ||
- uses: ravsamhq/[email protected] | ||
if: always() | ||
if: github.event_name == 'push' | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: 'failure' # default is 'success,failure,warnings' | ||
|
@@ -37,7 +37,7 @@ jobs: | |
- name: Run tests | ||
run: DB=postgres bundle exec rake spec:all | ||
- uses: ravsamhq/[email protected] | ||
if: always() | ||
if: github.event_name == 'push' | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: 'failure' # default is 'success,failure,warnings' | ||
|
@@ -58,7 +58,7 @@ jobs: | |
- name: Run tests | ||
run: DB=mysql bundle exec rake spec:all | ||
- uses: ravsamhq/[email protected] | ||
if: always() | ||
if: github.event_name == 'push' | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: 'failure' # default is 'success,failure,warnings' | ||
|
@@ -77,7 +77,7 @@ jobs: | |
- name: Run tests | ||
run: DB=mysql MYSQL_CONNECTION_PREFIX=mysql2://root:root@localhost:3306 bundle exec rake spec:all | ||
- uses: ravsamhq/[email protected] | ||
if: always() | ||
if: github.event_name == 'push' | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: 'failure' # default is 'success,failure,warnings' | ||
|
@@ -98,7 +98,7 @@ jobs: | |
- name: Run docs tests | ||
run: bundle exec rake check_doc_links | ||
- uses: ravsamhq/[email protected] | ||
if: always() | ||
if: github.event_name == 'push' | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: 'failure' # default is 'success,failure,warnings' | ||
|