From c5b93cff7c51461e51a6c32c8b63951883c686ae Mon Sep 17 00:00:00 2001 From: Mansur Uralov Date: Wed, 24 Jan 2024 10:52:02 +0100 Subject: [PATCH] Don't checkout PR branh as it is already done --- .github/workflows/pull-e2e-upgrade-test.yaml | 1 - .github/workflows/run-upgrade-tests-reusable.yaml | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/pull-e2e-upgrade-test.yaml b/.github/workflows/pull-e2e-upgrade-test.yaml index b292429f..7b6bf823 100644 --- a/.github/workflows/pull-e2e-upgrade-test.yaml +++ b/.github/workflows/pull-e2e-upgrade-test.yaml @@ -14,7 +14,6 @@ jobs: with: pre-upgrade-image-tag: main post-upgrade-image-tag: PR-${{ github.event.number }} - post-upgrade-branch: ${{ github.event.pull_request.head.ref }} build-job-name: pull-eventing-manager-build build-job-commit-sha: ${{ github.event.pull_request.head.sha }} secrets: inherit diff --git a/.github/workflows/run-upgrade-tests-reusable.yaml b/.github/workflows/run-upgrade-tests-reusable.yaml index d460917c..4a2c1c53 100644 --- a/.github/workflows/run-upgrade-tests-reusable.yaml +++ b/.github/workflows/run-upgrade-tests-reusable.yaml @@ -98,9 +98,7 @@ jobs: # uses post-upgrade-image-tag if post-upgrade-branch is not provided if [ -z "${{ inputs.post-upgrade-branch }}" ]; then git checkout -b ${{ inputs.post-upgrade-image-tag }} - else - git checkout ${{ inputs.post-upgrade-branch }} - fi + fi - name: Install Eventing manager after Upgrade run: |