Skip to content

Commit 3a57d52

Browse files
authored
Allow gh actions on main branch ref
1 parent f29bed7 commit 3a57d52

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: DataURI
22
on:
3+
push:
4+
branches:
5+
- main
36
pull_request_target:
47
types: [assigned, opened, synchronize, reopened]
58
jobs:
@@ -10,9 +13,12 @@ jobs:
1013
node: ['10', '12', '14', '16']
1114
name: Check package on Node.js ${{ matrix.node }}
1215
steps:
16+
- uses: actions/checkout@v2
17+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
1318
- uses: actions/checkout@v2
1419
with:
1520
ref: ${{ github.event.pull_request.head.sha }}
21+
if: ${{ github.event_name == 'pull_request_target' && github.base_ref == 'refs/heads/main' }}
1622
- uses: actions/setup-node@v2
1723
with:
1824
node-version: ${{ matrix.node }}

0 commit comments

Comments
 (0)