Skip to content

Commit db5a17a

Browse files
authored
Skip workflow runs the right way (#379)
1 parent 17bba40 commit db5a17a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
contents: read # for actions/checkout to fetch code
3131
security-events: write # for github/codeql-action/autobuild to send a status report
3232
packages: read # required to fetch internal or private CodeQL packs
33-
33+
if: ${{ github.event_name != 'merge_group' }}
3434
strategy:
3535
fail-fast: false
3636
matrix:

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ permissions:
1616

1717
jobs:
1818
dependency-review:
19+
name: Dependency Review
1920
runs-on: ubuntu-22.04
2021
permissions:
2122
contents: read # for actions/checkout
2223
pull-requests: write # for actions/dependency-review-action to post comments
24+
if: ${{ github.event_name != 'merge_group' }}
2325
steps:
24-
- name: Skip on Merge Group
25-
run: exit 0 # Artifically flag as successful, as this is a required check for branch protection.
26-
if: github.event_name == 'merge_group'
27-
2826
- name: Checkout Repository
2927
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3028

0 commit comments

Comments
 (0)