Skip to content

Commit

Permalink
Workflow condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MultiQC Bot committed Oct 5, 2023
1 parent b5147b1 commit a804ea6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
runs-on: ubuntu-latest
# Run if comment is on a PR with the main repo, and if it contains the magic keywords.
# Or run on PR creation, unless asked otherwise in the title.
if: >
github.repository_owner == 'vladsavelyev' &&
if: |
github.repository_owner == 'vladsavelyev' &&
(
github.event_name == 'pull_request_target' &&
!contains(github.event.pull_request.title, '(chore)' &&
!contains(github.event.pull_request.title, '(docs)'
) ||
!contains(github.event.pull_request.title, '(chore)' &&
!contains(github.event.pull_request.title, '(docs)'
||
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '@multiqc-bot changelog')
)
Expand Down

0 comments on commit a804ea6

Please sign in to comment.