diff --git a/.github/workflows/ompi_nvidia.yaml b/.github/workflows/ompi_nvidia.yaml index 74634f7ea6d..38fc1401d87 100644 --- a/.github/workflows/ompi_nvidia.yaml +++ b/.github/workflows/ompi_nvidia.yaml @@ -3,6 +3,7 @@ on: [pull_request] jobs: deployment: + if: github.repository == 'open-mpi/ompi' runs-on: [self-hosted, linux, x64, nvidia] steps: - name: Checkout @@ -29,7 +30,11 @@ jobs: - name: Running tests run: /start test clean: - if: ${{ always() }} +# always() should be used to run "clean" even when the workflow was canceled +# ( in case of the right repository name) +# The second condition doesn't work when the workflow was canceled + + if: always() && (github.repository == 'open-mpi/ompi') needs: [deployment, build, test] runs-on: [self-hosted, linux, x64, nvidia] steps: