mirror of
https://github.com/CarlGao4/um-react-electron.git
synced 2024-11-23 16:12:17 +00:00
Release on the correct SHA
This commit is contained in:
parent
18ad76dbd4
commit
af7b1f5a0e
7
.github/workflows/build-electron.yml
vendored
7
.github/workflows/build-electron.yml
vendored
@ -14,6 +14,10 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "um-react"
|
- "um-react"
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
commit:
|
||||||
|
type: string
|
||||||
|
default: main
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -116,7 +120,7 @@ jobs:
|
|||||||
upload-release:
|
upload-release:
|
||||||
name: Upload Release
|
name: Upload Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ inputs.release || github.event_name == 'push' || github.event_name == 'workflow_call' }}
|
if: ${{ inputs.release || github.event_name == 'push' || github.event_name == 'repository_dispatch' }}
|
||||||
needs: [build-linux-windows, build-macos]
|
needs: [build-linux-windows, build-macos]
|
||||||
steps:
|
steps:
|
||||||
- name: Download release files
|
- name: Download release files
|
||||||
@ -131,5 +135,6 @@ jobs:
|
|||||||
file: ${{ needs.build-linux-windows.outputs.version }}/*
|
file: ${{ needs.build-linux-windows.outputs.version }}/*
|
||||||
tag: ${{ needs.build-linux-windows.outputs.version }}
|
tag: ${{ needs.build-linux-windows.outputs.version }}
|
||||||
body: Release ${{ 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
|
overwrite: true
|
||||||
file_glob: true
|
file_glob: true
|
||||||
|
5
.github/workflows/update-um-react.yml
vendored
5
.github/workflows/update-um-react.yml
vendored
@ -11,6 +11,8 @@ jobs:
|
|||||||
update-um-react:
|
update-um-react:
|
||||||
name: Update um-react
|
name: Update um-react
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
commit: ${{ steps.push.outputs.pushed && steps.push.outputs.commit-sha || github.sha }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
@ -23,6 +25,7 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Push
|
- name: Push
|
||||||
|
id: push
|
||||||
uses: actions4git/add-commit-push@v1
|
uses: actions4git/add-commit-push@v1
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
@ -31,3 +34,5 @@ jobs:
|
|||||||
call-build:
|
call-build:
|
||||||
uses: ./.github/workflows/build-electron.yml
|
uses: ./.github/workflows/build-electron.yml
|
||||||
needs: update-um-react
|
needs: update-um-react
|
||||||
|
with:
|
||||||
|
commit: ${{ needs.update-um-react.outputs.commit }}
|
||||||
|
Loading…
Reference in New Issue
Block a user