Skip to content

Commit

Permalink
fix: workflow rules conditions
Browse files Browse the repository at this point in the history
Signed-off-by: CW <[email protected]>
  • Loading branch information
ovflowd authored Aug 31, 2023
1 parent 3a22d5d commit 0caaa80
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
# This Job removes the label after it got applied to ensure that we can easily apply again when needed
remove_pull_request_label:
if: |
github.event.action == 'labeled' && github.event.label.name == 'github_actions:pull-request'
github.event.action == 'labeled' &&
github.event.label.name == 'github_actions:pull-request'
name: Remove Pull Request Label
runs-on: ubuntu-latest
Expand Down Expand Up @@ -142,8 +143,8 @@ jobs:
# We don't need to upload a Lint Cache for Dependabot PRs and also when the GitHub Event is not a Pull Request
# i.e. if the Event is a Merge Queue Event
if: |
github.event_name != 'pull_request_target' ||
(github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'dependabot/') == false)
github.event_name == 'pull_request_target' &&
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false
uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: |
Expand Down Expand Up @@ -208,8 +209,8 @@ jobs:
# Skips a few steps if not on a Pull Request (Merge Group) or it is a Dependabot PR
# i.e. if the Event is a Merge Queue Event
if: |
github.event_name != 'pull_request_target' ||
(github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'dependabot/') == false)
github.event_name == 'pull_request_target' &&
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false
# We Build Storybook Locally and then upload it so it can be used on another Workflow
# We want to enforce that the actual `turbo@latest` package is used instead of a possible hijack from the user
# the `${{ needs.base.outputs.turbo_args }}` is a string substitution happening from the base job
Expand Down

0 comments on commit 0caaa80

Please sign in to comment.