Skip to content

Commit

Permalink
Simplfy job skip logic
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Sep 18, 2023
1 parent d229d46 commit e5330bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-profiling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5330bb

Please sign in to comment.