Create update-um-react.yml

This commit is contained in:
Weiqi Gao 2023-12-28 23:58:39 +08:00 committed by GitHub
parent a52f7aef2e
commit 0b5759241f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
.github/workflows/update-um-react.yml vendored Normal file
View File

@ -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 }}