Skip to content

Commit

Permalink
gardening: Fix turnstile config for issue events (#40092)
Browse files Browse the repository at this point in the history
Actions lacks a proper ternary operator or if-then syntax. We can mostly
fake it with `cond && then-value || else-value`, but that fails if the
`then-value` evaluates as falsey. That was happening in one place;
change things around to avoid the breakage.
  • Loading branch information
anomiex authored Nov 7, 2024
1 parent 988d970 commit 79120d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gardening.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
with:
# Split issues and issue_comment triggers from the rest. Otherwise a lot of issue work can result in pushes to trunk timing out.
events: ${{ ( github.event_name == 'issues' || github.event_name == 'issue_comment' ) && 'issues issue_comment' || '' }}
ignore-events: ${{ ( github.event_name == 'issues' || github.event_name == 'issue_comment' ) && '' || 'issues issue_comment' }}
ignore-events: ${{ ( github.event_name != 'issues' && github.event_name != 'issue_comment' ) && 'issues issue_comment' || '' }}

- name: "Run the action (assign, manage milestones, for issues and PRs)"
uses: ./projects/github-actions/repo-gardening
Expand Down

0 comments on commit 79120d9

Please sign in to comment.