From e2f53fc7156a372371ba9056dc48c71867a962ba Mon Sep 17 00:00:00 2001 From: YogeshPraj Date: Tue, 3 Nov 2026 10:15:16 +0000 Subject: [PATCH] Modify publish-nuget workflow trigger conditions Updated workflow to trigger only on manual dispatch from the main branch. --- .github/workflows/publish-nuget.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index f44d76b7..4ee9f688 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -1,9 +1,6 @@ name: publish-nuget on: - push: - tags: - - 'v*' workflow_dispatch: inputs: skip_duplicate: @@ -14,6 +11,8 @@ on: jobs: publish: + if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' + environment: release runs-on: ubuntu-latest permissions: contents: read @@ -22,6 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: + ref: ${{ github.sha }} fetch-depth: 0 - name: Setup .NET