Skip to content

Commit

Permalink
fix: skip dont fail on empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 20, 2024
1 parent e4bf47b commit d8a7894
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/development_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "*" # run for any pull request (see 1st job if condition for head name selection)
jobs:
should-run:
if: ${{ (github.ref != 'refs/heads/main') && (!startsWith(github.head_ref, 'release-')) }}
if: ${{ (github.ref != 'refs/heads/main') && (!startsWith(github.head_ref, 'release-')) && (!startsWith(github.event.head_commit.message, 'noT')) }}
runs-on: ubuntu-latest
steps:
- name: Info
Expand Down Expand Up @@ -59,8 +59,6 @@ jobs:
testfiles: ${{ steps.get_testfiles.outputs.testfiles }}
steps:
- uses: actions/checkout@v4
# TODO: use all if CHANGED_SRC is not empty
# TODO: map the test file names with the list of CHANGED_R otherwise
- id: get_testfiles
run: |
if [[ -z "${{ needs.get_changes.outputs.run_all }}" ]]; then
Expand All @@ -75,7 +73,7 @@ jobs:
cat $GITHUB_OUTPUT
build-install-test:
if: ${{ !startsWith(github.event.head_commit.message, 'noT') }}
if: ${{ ( needs.gather-tests.outputs.testfiles != '[]' ) }}
needs:
- gather-tests
- get-target-container
Expand Down

0 comments on commit d8a7894

Please sign in to comment.