Skip to content

Commit

Permalink
only checkout specified branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Jun 20, 2024
1 parent cd8e797 commit 8710772
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: ${{ inputs.branch && inputs.branch || github.event.repository.default_branch }}

- name: Output Variables
id: vars
Expand Down Expand Up @@ -68,7 +70,7 @@ jobs:
echo "latest_kindest_node_versions=$kindest_versions" >> $GITHUB_OUTPUT
source .github/data/version.txt
./.github/scripts/variables.sh stable_tag >> $GITHUB_OUTPUT
branch=main
branch=${{ github.event.repository.default_branch }}
if [ -n "${{ inputs.branch }}" ]; then
branch=${{ inputs.branch }}
fi
Expand Down Expand Up @@ -103,6 +105,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: ${{ needs.checks.outputs.branch }}

- name: Authenticate to Google Cloud
id: auth
Expand Down Expand Up @@ -180,6 +184,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: ${{ needs.checks.outputs.branch }}

- id: set-matrix
run: |
Expand All @@ -198,6 +204,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: ${{ needs.checks.outputs.branch }}

- name: Set image variables
id: image_details
Expand Down

0 comments on commit 8710772

Please sign in to comment.