forked from cocos/engine-native
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.97 KB
/
bindings.yml
File metadata and controls
53 lines (48 loc) · 1.97 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 🔃 Glue
on:
pull_request_target:
types: [closed]
jobs:
generate-jsb:
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download external libraries
run: |
EXT_VERSION=`grep version external/config.json |awk -F'"' '{print $4}'`
rm external/config.json
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos-creator/engine-native-external external
- name: Run genbindings.py
run: |
python3 -m pip install PyYAML==5.4.1 Cheetah3
python3 ./tools/tojs/genbindings.py
rm ./tools/tojs/userconf.ini
- name: Create Pull Request
uses: fish9167/create-pull-request@v3
with:
title: '[ci skip][AUTO]: Automated PR to genbindings'
body: |
Automated PR to genbindings
committer: cocos-robot <cocos-robot@cocos.com>
author: cocos-robot <cocos-robot@cocos.com>
commit-message: "[ci skip][AUTO]: Automated genbindings update: ${{ github.event.pull_request.head.sha }} (#${{ github.event.number }})"
token: ${{ secrets.PR_TOKEN }}
push-to-fork: cocos-robot/cocos2d-x-lite
branch: t/bot/genbindings
branch-suffix: short-commit-hash
delete-branch: true
milestone: 1
#- name: Make PR
# run: |
# cd tools/travis-scripts && bash generate-pr.sh
# env:
# TRAVIS_OS_NAME: linux
# TRAVIS_PULL_REQUEST: "false"
# TRAVIS_BRANCH: ${{github.base_ref}}
# TRAVIS_COMMIT: ${{github.sha}}
# TRAVIS_COMMIT_MESSAGE: ${{github.event.head_commit.message}}
# GH_EMAIL: cocos-robot@cocos.com
# GH_PASSWORD: ${{ secrets.PR_TOKEN }}
# GH_TOKEN: ${{ secrets.PR_TOKEN }}
# GH_USER: cocos-robot