Skip to content

Commit 7201343

Browse files
committed
Run workflow with push on forks
1 parent 5ae1ee4 commit 7201343

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.github/workflows/cdk-nag.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
name: CDK Nag Test
33

44
on:
5+
push:
6+
branches:
7+
- '*'
58
pull_request:
69
types: [opened, edited, reopened, synchronize]
710

811
jobs:
912
cdk-nag:
1013
name: CDK Nag Check
14+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
1115
runs-on: ubuntu-latest
1216
strategy:
1317
matrix:

.github/workflows/code-style-lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
name: Code Style and Lint
33

44
on:
5+
push:
6+
branches:
7+
- '*'
58
pull_request:
69
types: [opened, edited, reopened, synchronize]
710

811
jobs:
912
prettier:
1013
name: Style Check
14+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
1115
runs-on: ubuntu-latest
1216
strategy:
1317
matrix:
@@ -17,6 +21,7 @@ jobs:
1721
- run: npx --y prettier --config source/.prettierrc.yml --check 'source/**/*.ts'
1822
linter:
1923
name: Lint Check
24+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
2025
runs-on: ubuntu-latest
2126
strategy:
2227
matrix:

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Security Scans
22

33
on:
4+
push:
5+
branches:
6+
- '*'
47
pull_request:
58
types: [opened, edited, reopened, synchronize]
69

710
jobs:
811
codeql:
912
name: CodeQL Check
13+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
1014
runs-on: ubuntu-latest
1115
strategy:
1216
fail-fast: false

.github/workflows/pull-request-workflow.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Pull Request Workflow
22

33
on:
4+
push:
5+
branches:
6+
- '*'
47
pull_request:
58
types: [opened, edited, reopened, synchronize]
69

710
jobs:
811
pull-request-job:
912
name: Status Checks
13+
if: ${{ (github.repository_owner != 'aws-solutions' && github.event_name == 'push') || (github.repository_owner == 'aws-solutions' && github.event_name == 'pull_request') }}
1014
runs-on: ubuntu-latest
1115
steps:
1216
- name: Checkout

0 commit comments

Comments
 (0)