fix: downstream tests assume release branch was cut (#3047)

* Update go.sum

* fix release branch was cut

* fix go.sum

* remove extra steps

* drop extra line
This commit is contained in:
Ambati Sahithi 2024-06-03 05:11:51 +05:30 committed by GitHub
parent 7d52a43448
commit 229e527a13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 1 deletions

View File

@ -72,12 +72,22 @@ jobs:
git fetch upstream ${{ github.base_ref }}
git pull --no-rebase --no-commit upstream ${{ github.base_ref }}
- name: Checkout downstream at ${{ github.base_ref }}
- name: Attempt checkout of downstream at ${{ github.base_ref }}
id: checkout-downstream
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
repository: ${{ matrix.repo }}
path: downstream
continue-on-error: true
- name: Checkout downstream with fallback branch
if: steps.checkout-downstream.outcome == 'failure'
uses: actions/checkout@v4
with:
ref: main
repository: ${{ matrix.repo }}
path: downstream
- name: Test downstream
uses: knative/actions/go/downstream-test@main