From 0d739ea3f8169bb13cf521937d2ecd8fbf428f7e 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/test-e2e-gov.yml | 1 + .github/workflows/test-int.yml | 5 +++++ .licenses-gomod.sha256 | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) 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-int.yml b/.github/workflows/test-int.yml index 339223227b..b00015dd54 100644 --- a/.github/workflows/test-int.yml +++ b/.github/workflows/test-int.yml @@ -25,6 +25,11 @@ jobs: nodes: 1 steps: + - name: Print refs + run: | + echo ${{github.head_ref}} + echo ${{github.ref}} + - if: ${{ inputs.forked == false }} name: Check out code uses: actions/checkout@v4 diff --git a/.licenses-gomod.sha256 b/.licenses-gomod.sha256 index 1b00d0701a..b060cb7936 100644 --- a/.licenses-gomod.sha256 +++ b/.licenses-gomod.sha256 @@ -1 +1 @@ -100644 6e4f1f4bfe3221508b099d43e2af672a3ef224c9 go.mod +100644 7a60e838b5b0f5aa778a2eb04ee5a06e8838c43c go.mod