Skip to content

Commit

Permalink
Skip the IRC notification if the integration test is started manually (
Browse files Browse the repository at this point in the history
…#1110)

## Problem

- When debugging a failing integration test you have to trigger it
manually
- If the test fails it sends notification to IRC
- If you need to run the test several times to find the problem then you
are spamming the IRC channel

## Solution

- Skip the IRC notification if the integration test is started manually

## Rationale

- If you run the test manually you are very likely watching the result,
it should send the IRC notification only when started automatically via
the cron setting.
  • Loading branch information
lslezak authored Mar 21, 2024
2 parents 3680ba4 + 2b0f87b commit 03a6b6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ jobs:
- name: IRC notification
# see https://github.com/marketplace/actions/irc-message-action
uses: Gottox/irc-message-action@v2
# never run in forks
if: failure() && github.repository_owner == 'openSUSE'
# never run in forks or when triggered manually
if: failure() && github.repository_owner == 'openSUSE' && github.event_name != 'workflow_dispatch'
with:
channel: "#yast"
nickname: github-action
Expand Down

0 comments on commit 03a6b6b

Please sign in to comment.