diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index c12b6e607a..6e3597b2f1 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -29,9 +29,11 @@ jobs: filters: | mobile: - 'mobile/**' + workflow: + - '.github/workflows/build-mobile.yml' - name: Check if we should force jobs to run id: should_force - run: echo "should_force=${{ github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' }}" >> "$GITHUB_OUTPUT" + run: echo "should_force=${{ steps.found_paths.outputs.workflow == 'true' || github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' }}" >> "$GITHUB_OUTPUT" build-sign-android: name: Build and sign Android diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7bcc7bd5f4..f703d479fc 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,10 +36,12 @@ jobs: - 'i18n/**' machine-learning: - 'machine-learning/**' + workflow: + - '.github/workflows/docker.yml' - name: Check if we should force jobs to run id: should_force - run: echo "should_force=${{ github.event_name == 'workflow_dispatch' || github.event_name == 'release' }}" >> "$GITHUB_OUTPUT" + run: echo "should_force=${{ steps.found_paths.outputs.workflow == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' }}" >> "$GITHUB_OUTPUT" retag_ml: name: Re-Tag ML diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index efb84d510e..63b906748f 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -15,7 +15,7 @@ jobs: pre-job: runs-on: ubuntu-latest outputs: - should_run: ${{ steps.found_paths.outputs.docs == 'true' || steps.should_force.outputs.should_force == 'true' }} + should_run: ${{ steps.found_paths.outputs.docs == 'true' || steps.should_force.outputs.should_force == 'true' }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -25,9 +25,11 @@ jobs: filters: | docs: - 'docs/**' + workflow: + - '.github/workflows/docs-build.yml' - name: Check if we should force jobs to run id: should_force - run: echo "should_force=${{ github.event_name == 'release' || github.ref_name == 'main' }}" >> "$GITHUB_OUTPUT" + run: echo "should_force=${{ steps.found_paths.outputs.workflow == 'true' || github.event_name == 'release' || github.ref_name == 'main' }}" >> "$GITHUB_OUTPUT" build: name: Docs Build diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 196f8faf59..4d8d40a47b 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -23,9 +23,11 @@ jobs: filters: | mobile: - 'mobile/**' + workflow: + - '.github/workflows/static_analysis.yml' - name: Check if we should force jobs to run id: should_force - run: echo "should_force=${{ github.event_name == 'release' }}" >> "$GITHUB_OUTPUT" + run: echo "should_force=${{ steps.found_paths.outputs.workflow == 'true' || github.event_name == 'release' }}" >> "$GITHUB_OUTPUT" mobile-dart-analyze: name: Run Dart Code Analysis diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52e0ba7b07..a8a8f0e5c1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,10 +43,12 @@ jobs: - 'mobile/**' machine-learning: - 'machine-learning/**' + workflow: + - '.github/workflows/test.yml' - name: Check if we should force jobs to run id: should_force - run: echo "should_force=${{ github.event_name == 'workflow_dispatch' }}" >> "$GITHUB_OUTPUT" + run: echo "should_force=${{ steps.found_paths.outputs.workflow == 'true' || github.event_name == 'workflow_dispatch' }}" >> "$GITHUB_OUTPUT" server-unit-tests: name: Test & Lint Server