We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c014fe4 commit e9e364eCopy full SHA for e9e364e
.github/workflows/compile.yml
@@ -1,14 +1,18 @@
1
name: Compile and push dist file
2
3
-on:
4
- push:
5
- branches: [master]
+on: [push, pull_request]
6
7
jobs:
8
compile-and-push:
9
runs-on: ubuntu-latest
10
steps:
11
- - uses: actions/checkout@v4
+ - if: github.event_name != 'pull_request'
+ uses: actions/checkout@v4
+ - if: github.event_name == 'pull_request'
12
13
+ with:
14
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
15
+ ref: ${{ github.event.pull_request.head.ref }}
16
- uses: actions/setup-node@v4
17
with:
18
node-version: 20
0 commit comments