Compare commits

...

7 Commits

Author SHA1 Message Date
CarlGao4 af7b1f5a0e Release on the correct SHA 2023-12-29 09:50:26 +08:00
Weiqi Gao 18ad76dbd4
fix 2023-12-29 09:24:51 +08:00
Weiqi Gao 4011e349b3
Call build after receiving repository_dispatch 2023-12-29 09:20:12 +08:00
Weiqi Gao 3977aa4559
Enable call from another workflow 2023-12-29 09:15:07 +08:00
github-actions[bot] d2824df2b9 Update um-react to v0.2.7 2023-12-29 00:52:45 +00:00
Weiqi Gao 8be35fd47b
Restore workflow change 2023-12-29 08:47:21 +08:00
github-actions[bot] 4888d607c6 Update um-react to v0.2.6 2023-12-29 00:40:35 +00:00
3 changed files with 18 additions and 3 deletions

View File

@ -13,6 +13,11 @@ on:
- "main"
paths:
- "um-react"
workflow_call:
inputs:
commit:
type: string
default: main
permissions:
contents: write
@ -115,7 +120,7 @@ jobs:
upload-release:
name: Upload Release
runs-on: ubuntu-latest
if: ${{ inputs.release || github.event_name == 'push' }}
if: ${{ inputs.release || github.event_name == 'push' || github.event_name == 'repository_dispatch' }}
needs: [build-linux-windows, build-macos]
steps:
- name: Download release files
@ -130,5 +135,6 @@ jobs:
file: ${{ needs.build-linux-windows.outputs.version }}/*
tag: ${{ needs.build-linux-windows.outputs.version }}
body: Release ${{ needs.build-linux-windows.outputs.version }}
target_commit: ${{ github.event_name == 'repository_dispatch' && inputs.commit || github.sha }}
overwrite: true
file_glob: true

View File

@ -11,6 +11,8 @@ 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
@ -23,7 +25,14 @@ jobs:
cd ..
- name: Push
id: push
uses: actions4git/add-commit-push@v1
continue-on-error: true
with:
commit-message: Update um-react to ${{ github.event.client_payload.tag }}
call-build:
uses: ./.github/workflows/build-electron.yml
needs: update-um-react
with:
commit: ${{ needs.update-um-react.outputs.commit }}

@ -1 +1 @@
Subproject commit e148d4a7c7711ed6c54d74f701454e58c51564e9
Subproject commit 0f0c21144aba43ce0fae5516aee357cfd33a5534