forked from cocos/cocos-engine
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 977 Bytes
/
check_version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: check version
#on: push
on: [create, pull_request]
jobs:
Check_pull_request_version:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v2
- name: npm install
run: |
node -v
npm install || exit 0
- name: check version
run: |
branch=`echo ${{ github.base_ref }} | awk -F'/' '{print $NF}'`
echo "Branch: ${branch}"
npm run varify-engine-version -- ${branch}
Check_create_version:
runs-on: ubuntu-latest
if: github.event_name == 'create'
steps:
- uses: actions/checkout@v2
- name: npm install
run: |
node -v
npm install || exit 0
- name: check version
run: |
branch=`echo ${{ github.ref }} | awk -F'/' '{print $NF}'`
echo "Branch: ${branch}"
npm run varify-engine-version -- ${branch}