From e1a76d37b60193cb28474089704c1374860aad98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:18:08 +0900 Subject: [PATCH] Update on-release-published.yml --- .github/workflows/on-release-published.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-release-published.yml b/.github/workflows/on-release-published.yml index 8b5debab8b..b966c2fe70 100644 --- a/.github/workflows/on-release-published.yml +++ b/.github/workflows/on-release-published.yml @@ -6,12 +6,21 @@ on: - published workflow_dispatch: + inputs: + misskey-hub: + type: boolean + description: 'Update Misskey Hub' + default: false + misskey-js: + type: boolean + description: 'Start Release Candidate' + default: false jobs: update-misskey-hub: name: Update Misskey Hub (Repository Dispatch) 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: - name: Get current date @@ -36,6 +45,7 @@ jobs: publish-misskey-js: name: Publish misskey-js runs-on: ubuntu-latest + if: ${{ (github.event.name == 'workflow_dispatch' && inputs.misskey-js == true) || github.event.name == 'release' }} permissions: contents: read