um-react-electron/.github/workflows/update-um-react.yml

39 lines
912 B
YAML
Raw Normal View History

2023-12-28 15:58:39 +00:00
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
2023-12-29 01:50:26 +00:00
outputs:
commit: ${{ steps.push.outputs.pushed && steps.push.outputs.commit-sha || github.sha }}
2023-12-28 15:58:39 +00:00
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
2023-12-29 01:50:26 +00:00
id: push
2023-12-28 15:58:39 +00:00
uses: actions4git/add-commit-push@v1
continue-on-error: true
2023-12-28 15:58:39 +00:00
with:
commit-message: Update um-react to ${{ github.event.client_payload.tag }}
2023-12-29 01:24:51 +00:00
call-build:
uses: ./.github/workflows/build-electron.yml
needs: update-um-react
2023-12-29 01:50:26 +00:00
with:
commit: ${{ needs.update-um-react.outputs.commit }}