Files
cocos-engine/.github/workflows/web-check_version.yml
James Chen f34301fb88 [3.5] Update ci yml files, add native/web prefix, cherry-pick from #10083 (#10104)
* 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
2022-02-15 09:55:48 +08:00

40 lines
983 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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}