mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-07 00:02:53 +08:00
* Update ci yml files, add native/web prefix (#10083) * Update ci yml files, add native/web prefix * Update native-compile-platform.yml * Update CMakeLists.header.txt & generate_compile_command_android.sh * Fix wrong path in filter_by_cdb.js
40 lines
983 B
YAML
40 lines
983 B
YAML
name: <Web> 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}
|
||
|