From 38ddb6f89d66a97157109e061dbdf120e421ade8 Mon Sep 17 00:00:00 2001 From: Dynesshely Date: Wed, 28 Feb 2024 21:44:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Chore(Actions.PublishPackages):?= =?UTF-8?q?=20Allow=20pass=20command=20when=20manually=20invoke.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-packages.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index dd4b17d..b9ee442 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -7,12 +7,16 @@ on: branches: ["main"] workflow_dispatch: + inputs: + command: + description: "Command" + default: "[Publish Packages][All]" jobs: build-on-ubuntu: runs-on: ubuntu-latest environment: Publish Packages - if: contains(github.event.head_commit.message, '[Publish Packages]') + if: contains(github.event.head_commit.message, '[Publish Packages]') || contains(github.event.inputs.command, '[Publish Packages]') steps: - uses: actions/checkout@v4 @@ -45,7 +49,7 @@ jobs: - name: Build and Publish `Cheese` working-directory: "KitX SDK/Cheese" - if: contains(github.event.head_commit.message, '[Cheese]') || contains(github.event.head_commit.message, '[All]') + if: contains(github.event.head_commit.message, '[Cheese]') || contains(github.event.head_commit.message, '[All]') || contains(github.event.inputs.command, '[Cheese]') || contains(github.event.inputs.command, '[All]') run: | dotnet build -c Release @@ -54,7 +58,7 @@ jobs: - name: Build and Publish `KitX.Contract.CSharp` working-directory: "KitX Standard/KitX Contracts/KitX.Contract.CSharp" - if: contains(github.event.head_commit.message, '[KitX.Contract.CSharp]') || contains(github.event.head_commit.message, '[All]') + if: contains(github.event.head_commit.message, '[KitX.Contract.CSharp]') || contains(github.event.head_commit.message, '[All]') || contains(github.event.inputs.command, '[KitX.Contract.CSharp]') || contains(github.event.inputs.command, '[All]') run: | dotnet build -c Release @@ -63,7 +67,7 @@ jobs: - name: Build and Publish `KitX.Shared.CSharp` working-directory: "KitX Standard/KitX Shared/KitX.Shared.CSharp" - if: contains(github.event.head_commit.message, '[KitX.Shared]') || contains(github.event.head_commit.message, '[All]') + if: contains(github.event.head_commit.message, '[KitX.Shared.CSharp]') || contains(github.event.head_commit.message, '[All]') || contains(github.event.inputs.command, '[KitX.Shared.CSharp]') || contains(github.event.inputs.command, '[All]') run: | dotnet build -c Release @@ -72,7 +76,7 @@ jobs: - name: Build and Publish `KitX.FileFormats.CSharp` working-directory: "KitX Standard/KitX File Formats/KitX.FileFormats.CSharp" - if: contains(github.event.head_commit.message, '[KitX.FileFormats]') || contains(github.event.head_commit.message, '[All]') + if: contains(github.event.head_commit.message, '[KitX.FileFormats.CSharp]') || contains(github.event.head_commit.message, '[All]') || contains(github.event.inputs.command, '[KitX.FileFormats.CSharp]') || contains(github.event.inputs.command, '[All]') run: | dotnet build -c Release