From 0b5759241f9078bc3fe1081fbb5efbe1ec236027 Mon Sep 17 00:00:00 2001 From: Weiqi Gao Date: Thu, 28 Dec 2023 23:58:39 +0800 Subject: [PATCH] Create update-um-react.yml --- .github/workflows/update-um-react.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-um-react.yml diff --git a/.github/workflows/update-um-react.yml b/.github/workflows/update-um-react.yml new file mode 100644 index 0000000..88d0d35 --- /dev/null +++ b/.github/workflows/update-um-react.yml @@ -0,0 +1,29 @@ +name: Update um-react + +on: + repository_dispatch: + types: [new-tag] + +permissions: + contents: write + +jobs: + update-um-react: + name: Update um-react + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + + - name: Update repo + run: | + git submodule update --init + cd um-react + git checkout ${{ github.event.client_payload.tag }} + cd .. + + - name: Push + uses: actions4git/add-commit-push@v1 + with: + commit-message: Update um-react to ${{ github.event.client_payload.tag }} +