2024-12-19 01:29:56 +00:00
|
|
|
name: Update um-react manual
|
2024-12-19 01:29:11 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
commit:
|
|
|
|
description: 'Commit to fetch'
|
|
|
|
type: string
|
|
|
|
required: true
|
2024-12-19 01:40:01 +00:00
|
|
|
release:
|
|
|
|
description: 'Create a release for this update'
|
|
|
|
type: boolean
|
|
|
|
required: false
|
|
|
|
default: false
|
2024-12-19 01:29:11 +00:00
|
|
|
|
|
|
|
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/checkout@v4.1.1
|
|
|
|
|
|
|
|
- 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 }}
|
2024-12-19 01:40:01 +00:00
|
|
|
release: ${{ inputs.release }}
|