From 699f5b9f38d16311686e4cac46630ef50a683078 Mon Sep 17 00:00:00 2001 From: monkeyx-net Date: Mon, 26 Aug 2024 19:34:28 +0100 Subject: [PATCH] fixed duplicate --- .github/workflows/cooker-selfhosted.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 5d1790db..2fadc593 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -70,14 +70,6 @@ jobs: branch_name=$(echo $GITHUB_REF | sed 's|refs/heads/||') echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV fi - run: | - if [[ "$GITHUB_EVENT_NAME" == "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]]; then - source_branch="${{ github.head_ref }}" - echo "BRANCH_NAME=$source_branch" >> $GITHUB_ENV - else - branch_name=$(echo $GITHUB_REF | sed 's|refs/heads/||') - echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV - fi # if the branch is coming from a PR the tag should be manually built - name: "Generate version tag and evaluating latest tag"