We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f29bed7 commit 3a57d52Copy full SHA for 3a57d52
1 file changed
.github/workflows/main.yml
@@ -1,5 +1,8 @@
1
name: DataURI
2
on:
3
+ push:
4
+ branches:
5
+ - main
6
pull_request_target:
7
types: [assigned, opened, synchronize, reopened]
8
jobs:
@@ -10,9 +13,12 @@ jobs:
10
13
node: ['10', '12', '14', '16']
11
14
name: Check package on Node.js ${{ matrix.node }}
12
15
steps:
16
+ - uses: actions/checkout@v2
17
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
18
- uses: actions/checkout@v2
19
with:
20
ref: ${{ github.event.pull_request.head.sha }}
21
+ if: ${{ github.event_name == 'pull_request_target' && github.base_ref == 'refs/heads/main' }}
22
- uses: actions/setup-node@v2
23
24
node-version: ${{ matrix.node }}
0 commit comments