From e5330bbca0944b98fe03fd5b1eb8eae34fcdeefc Mon Sep 17 00:00:00 2001 From: willGraham01 <1willgraham@gmail.com> Date: Mon, 18 Sep 2023 09:55:47 +0100 Subject: [PATCH] Simplfy job skip logic --- .github/workflows/run-profiling.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-profiling.yaml b/.github/workflows/run-profiling.yaml index 9981b02787..c42e326e5a 100644 --- a/.github/workflows/run-profiling.yaml +++ b/.github/workflows/run-profiling.yaml @@ -99,10 +99,10 @@ jobs: # NOTE: We need to explicitly depend on set-variables to access the artifact name needs: [set-variables, profile-on-comment, profile-on-dispatch] if: | - always() && - (needs.profile-on-comment.result == 'success' || needs.profile-on-comment.result == 'skipped') && - (needs.profile-on-dispatch.result == 'skipped' || needs.profile-on-dispatch.result == 'success') && - !(needs.profile-on-comment.result == 'skipped' && needs.profile-on-dispatch.result == 'skipped') + always() && ( + (needs.profile-on-comment.result == 'success' && needs.profile-on-dispatch.result == 'skipped') || + (needs.profile-on-comment.result == 'skipped' || needs.profile-on-dispatch.result == 'success') + ) steps: - name: Download the profiling results uses: actions/download-artifact@v3