From df37907f5014a9026cf022026cb41ffe96731f27 Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Mon, 13 Nov 2023 13:33:42 +1000 Subject: [PATCH] using different event --- .github/workflows/destroy-branch-environment.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/destroy-branch-environment.yaml b/.github/workflows/destroy-branch-environment.yaml index 135b0d2..4b3dc38 100644 --- a/.github/workflows/destroy-branch-environment.yaml +++ b/.github/workflows/destroy-branch-environment.yaml @@ -19,9 +19,6 @@ jobs: id-token: write steps: - - name: Get branch name - id: branch-name - uses: tj-actions/branch-names@v7 - name: Login to Octopus 🐙 uses: OctopusDeploy/login@v1 @@ -36,7 +33,7 @@ jobs: project: 'SHIPPED23' runbook: 'Destroy branch environment' variables: | - Branch:${{ steps.branch-name.outputs.current_branch }} + Branch:${{ github.event.pull_request.head.ref }} environments: | Branch Template