ci: checkout with --branch ref_name
All checks were successful
Build and Deploy (app.xpcool.com) / build-and-deploy (push) Successful in 46s
All checks were successful
Build and Deploy (app.xpcool.com) / build-and-deploy (push) Successful in 46s
This commit is contained in:
parent
8ba2492863
commit
d9690c8b4c
@ -19,7 +19,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout (local Gitea, no external actions)
|
- name: Checkout (local Gitea, no external actions)
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git .
|
git clone --depth 1 --branch "${{ github.ref_name }}" https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git .
|
||||||
git checkout ${{ github.sha }}
|
git checkout ${{ github.sha }}
|
||||||
|
|
||||||
- name: Use npmmirror registry (faster in CN)
|
- name: Use npmmirror registry (faster in CN)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user