File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -26,27 +26,16 @@ jobs:
2626 steps :
2727 - name : Checkout sources
2828 uses : actions/checkout@v3
29+ with :
30+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
2931 - name : Decrypt keyfile
3032 run : ./.github/scripts/decrypt_secret.sh
3133 env :
3234 KEYFILE_PASSPHRASE : ${{secrets.KEYFILE_PASSPHRASE}}
33-
34- - name : Get yarn cache directory path
35- id : yarn-cache-dir-path
36- run : echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
37-
38- - uses : actions/cache@v3
39- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
40- with :
41- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
42- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43- restore-keys : |
44- ${{ runner.os }}-yarn-
4535 - name : Install Node.js
4636 uses : actions/setup-node@v3
4737 with :
4838 node-version : ${{matrix.node-version}}
49-
5039 - name : Install dependencies
5140 run : corepack yarn install
5241 - name : Build
You can’t perform that action at this time.
0 commit comments