Skip to content

Commit

Permalink
Added shortcut command to run all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas authored Jun 7, 2024
1 parent 8e69d7b commit 29b9ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number }}
group: ${{ github.workflow }}-${{ github.event.issue.number }}-${{ contains(github.event.comment.body, '/run checks') || contains(github.event.comment.body, '/run all') }}
cancel-in-progress: true

permissions:
Expand All @@ -16,7 +16,7 @@ jobs:
linter:
if: >
github.event.issue.pull_request &&
contains(github.event.comment.body, '/run checks') &&
(contains(github.event.comment.body, '/run checks') || contains(github.event.comment.body, '/run all')) &&
(github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'CONTRIBUTOR')
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number }}-${{ contains(github.event.comment.body, '/run standalone') }}-${{ contains(github.event.comment.body, '/run cmssw') }}
group: ${{ github.workflow }}-${{ github.event.issue.number }}-${{ contains(github.event.comment.body, '/run standalone') || contains(github.event.comment.body, '/run all') }}-${{ contains(github.event.comment.body, '/run cmssw') || contains(github.event.comment.body, '/run all') }}
cancel-in-progress: true

permissions:
Expand All @@ -16,7 +16,7 @@ jobs:
standalone:
if: >
github.event.issue.pull_request &&
contains(github.event.comment.body, '/run standalone') &&
(contains(github.event.comment.body, '/run standalone') || contains(github.event.comment.body, '/run all')) &&
(github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'CONTRIBUTOR')
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
cmssw:
if: >
github.event.issue.pull_request &&
contains(github.event.comment.body, '/run cmssw') &&
(contains(github.event.comment.body, '/run cmssw')|| contains(github.event.comment.body, '/run all')) &&
(github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'CONTRIBUTOR')
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 29b9ed6

Please sign in to comment.