From c6bf4e6ef4d8a7df285cfc9a9942c7fa763b138c Mon Sep 17 00:00:00 2001 From: Weiqi Gao Date: Thu, 19 Dec 2024 09:29:11 +0800 Subject: [PATCH] Add update-um-react-manual.yml to fetch latest codes manually --- .github/workflows/update-um-react-manual.yml | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/update-um-react-manual.yml diff --git a/.github/workflows/update-um-react-manual.yml b/.github/workflows/update-um-react-manual.yml new file mode 100644 index 0000000..064aeb9 --- /dev/null +++ b/.github/workflows/update-um-react-manual.yml @@ -0,0 +1,42 @@ +name: Update um-react + +on: + workflow_dispatch: + inputs: + commit: + description: 'Commit to fetch' + type: string + required: true + +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 }}