From 801f724cb7d5bbb3a11c49f05011b918c11fbdc3 Mon Sep 17 00:00:00 2001 From: Roo Thorp Date: Wed, 13 Mar 2024 15:24:54 +0000 Subject: [PATCH] avoid using main branch when label added --- .github/workflows/openshift-upgrade-test.yaml | 1 + .github/workflows/test-e2e-gov.yml | 1 + .github/workflows/test-e2e.yml | 1 + .github/workflows/test-int.yml | 2 ++ .licenses-gomod.sha256 | 2 +- 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openshift-upgrade-test.yaml b/.github/workflows/openshift-upgrade-test.yaml index cd749bd184..3e0cc53b9f 100644 --- a/.github/workflows/openshift-upgrade-test.yaml +++ b/.github/workflows/openshift-upgrade-test.yaml @@ -36,6 +36,7 @@ jobs: name: Check out code uses: actions/checkout@v4 with: + ref: ${{ github.head_ref || github.ref }} fetch-depth: 0 # required for tags - if: ${{ inputs.forked == true }} name: Check out code diff --git a/.github/workflows/test-e2e-gov.yml b/.github/workflows/test-e2e-gov.yml index e8496255a3..095bc5d567 100644 --- a/.github/workflows/test-e2e-gov.yml +++ b/.github/workflows/test-e2e-gov.yml @@ -13,6 +13,7 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: + ref: ${{ github.head_ref || github.ref }} submodules: true - name: Create k8s Kind Cluster if: ${{ !env.ACT }} diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 4c96d0765d..d96cb99ee7 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -20,6 +20,7 @@ jobs: name: Check out code uses: actions/checkout@v4 with: + ref: ${{ github.head_ref || github.ref }} submodules: true fetch-depth: 0 - if: ${{ inputs.forked == true }} diff --git a/.github/workflows/test-int.yml b/.github/workflows/test-int.yml index 251ba480df..eed9fb3c3c 100644 --- a/.github/workflows/test-int.yml +++ b/.github/workflows/test-int.yml @@ -28,6 +28,8 @@ jobs: - if: ${{ inputs.forked == false }} name: Check out code uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref }} - if: ${{ inputs.forked == true }} name: Check out code diff --git a/.licenses-gomod.sha256 b/.licenses-gomod.sha256 index 174d841b64..dd1d7ea16d 100644 --- a/.licenses-gomod.sha256 +++ b/.licenses-gomod.sha256 @@ -1 +1 @@ -100644 27936c39e8bedb66cbe2a674b975fe8a9498efd4 go.mod +100644 f9cfa1be8ceb6260438d09d0b51bb62053234b3f go.mod