forked from dfvips/um-react-electron
-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (42 loc) · 1.12 KB
/
update-um-react-manual.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
40
41
42
43
44
45
46
47
48
name: Update um-react manual
on:
workflow_dispatch:
inputs:
commit:
description: 'Commit to fetch'
type: string
required: true
release:
description: 'Create a release for this update'
type: boolean
required: false
default: false
permissions:
contents: write
jobs:
update-um-react:
name: Update um-react
runs-on: ubuntu-latest
outputs:
commit: ${{ steps.push.outputs.pushed && steps.push.outputs.commit-sha || github.sha }}
steps:
- name: Checkout
uses: actions/[email protected]
- name: Update repo
run: |
git submodule update --init
cd um-react
git checkout ${{ inputs.commit }}
cd ..
- name: Push
id: push
uses: actions4git/add-commit-push@v1
continue-on-error: true
with:
commit-message: Update um-react to ${{ inputs.commit }}
call-build:
uses: ./.github/workflows/build-electron.yml
needs: update-um-react
with:
commit: ${{ needs.update-um-react.outputs.commit }}
release: ${{ inputs.release }}