Update on-release-published.yml
This commit is contained in:
parent
f8fde7e590
commit
e1a76d37b6
|
@ -6,12 +6,21 @@ on:
|
||||||
- published
|
- published
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
misskey-hub:
|
||||||
|
type: boolean
|
||||||
|
description: 'Update Misskey Hub'
|
||||||
|
default: false
|
||||||
|
misskey-js:
|
||||||
|
type: boolean
|
||||||
|
description: 'Start Release Candidate'
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-misskey-hub:
|
update-misskey-hub:
|
||||||
name: Update Misskey Hub (Repository Dispatch)
|
name: Update Misskey Hub (Repository Dispatch)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.name == 'workflow_dispatch' || github.release.prerelease == false
|
if: ${{ (github.event.name == 'workflow_dispatch' && inputs.misskey-hub == true) || github.release.prerelease == false }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
|
@ -36,6 +45,7 @@ jobs:
|
||||||
publish-misskey-js:
|
publish-misskey-js:
|
||||||
name: Publish misskey-js
|
name: Publish misskey-js
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ (github.event.name == 'workflow_dispatch' && inputs.misskey-js == true) || github.event.name == 'release' }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
Loading…
Reference in New Issue