mirror of https://github.com/knative/pkg.git
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:
parent
7d52a43448
commit
229e527a13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue