forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 167
33 lines (33 loc) · 1.06 KB
/
merge-to-js.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
name: Merge master branch to lvgl_javascript
on:
push:
branches:
- 'master'
jobs:
merge-branch:
runs-on: ubuntu-20.04
steps:
- name: Wait for Unix port build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: build
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Skip merge
run: exit 1
if: steps.wait-for-build.outputs.conclusion == 'failure'
- uses: actions/checkout@master
- name: Merge to lvgl_javascript branch
uses: devmasx/merge-branch@v1.1.0
with:
type: now
target_branch: 'lvgl_javascript_v9'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Trigger Javascript port build
uses: benc-uk/workflow-dispatch@a69ac85ea87587e76bb4f262eb868205dfcab8e8
with:
workflow: Build Javascript v9 port
ref: ${{ github.event.ref }}
token: ${{ secrets.LVGL_BOT_TOKEN }}