From f90b08287088713d02759b4c5d9045583b8fa973 Mon Sep 17 00:00:00 2001 From: Stephen Vakil Date: Tue, 23 Jul 2024 16:48:59 -0500 Subject: [PATCH] Fix event for label creation --- .github/workflows/workflow_build_and_release_containers.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow_build_and_release_containers.yaml b/.github/workflows/workflow_build_and_release_containers.yaml index efd4f14b..ce9a063e 100644 --- a/.github/workflows/workflow_build_and_release_containers.yaml +++ b/.github/workflows/workflow_build_and_release_containers.yaml @@ -52,7 +52,7 @@ jobs: dotnet tool install --global Octopus.DotNet.Cli --version 9.1.7 dotnet octo --version - name: Create Octo Release if main or deploy to sandbox label present - if: ${{ github.ref_name == 'main' || contains(github.event.pull_request.labels.*.name, 'deploy-to-sandbox') }} + if: ${{ github.ref_name == 'main' || contains(github.event.issue.labels.*.name, 'deploy-to-sandbox') }} run: | octoSpaceId="Spaces-1" octoProjectId="Projects-2241" @@ -61,7 +61,7 @@ jobs: --gitRef=main --server=${{ vars.OCTOPUS_CLOUD_URL }} --apiKey=${{ secrets.OCTOPUS_CLOUD_API_KEY }} # Note: The gitRef param is for the Octo config repo and not the git repo for the code - name: Deploy via Octopus if main or deploy to sandbox label present - if: ${{ github.ref_name == 'main' || contains(github.event.pull_request.labels.*.name, 'deploy-to-sandbox') }} + if: ${{ github.ref_name == 'main' || contains(github.event.issue.labels.*.name, 'deploy-to-sandbox') }} run: | octoSpaceId="Spaces-1" octoProjectId="Projects-2241"