Skip to content

Commit

Permalink
ci: trigger separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Feb 27, 2024
1 parent 2a59128 commit 9820ab4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ jobs:
- test/**/*.py
- test/test_requirements.txt
catch-all:
trigger-catch-all:
# Don't run this check if the PR contains both code and non-code changes (e.g. release notes)
needs: check_if_changed
if: needs.check_if_changed.outputs.code_changes == 'false'
name: Catch-all check
runs-on: ubuntu-latest
steps:
- name: Skip tests
run: echo "Skipped!"
uses: deepset-ai/haystack/.github/workflows/tests_skipper_workflow.yml@main
16 changes: 16 additions & 0 deletions .github/workflows/tests_skipper_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# If you change this name also do it in tests.yml and ci_metrics.yml
# We use a separate workflow to skip the tests if the PR contains both code and non-code changes (e.g. release notes).
# Skipping the job unfortunately doesn't work because GitHub will treat these jobs as successful even if they are
# skipped. Hence, we need to revert to a separate workflow.
name: Tes
on:
workflow_call:

jobs:
catch-all:
# Don't run this check if the PR contains both code and non-code changes (e.g. release notes)
name: Catch-all check
runs-on: ubuntu-latest
steps:
- name: Skip tests
run: echo "Skipped!"

0 comments on commit 9820ab4

Please sign in to comment.