Skip to content

Commit fa9af92

Browse files
committed
update order of condition check for github action
1 parent 8d1462f commit fa9af92

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/commit-lint.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ permissions:
1313

1414
jobs:
1515
commit-lint:
16+
if: github.repository == 'ekristen/aws-nuke'
1617
name: commit-lint
1718
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@v4
20-
if: github.repository == 'ekristen/aws-nuke'
21-
- uses: wagoid/commitlint-github-action@v6
22-
if: github.repository == 'ekristen/aws-nuke'
21+
- uses: wagoid/commitlint-github-action@v6

.github/workflows/semantic-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ permissions:
1313

1414
jobs:
1515
semantic-lint:
16+
if: github.repository == 'ekristen/aws-nuke'
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: amannn/action-semantic-pull-request@v5
19-
if: github.repository == 'ekristen/aws-nuke'
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)