mirror of https://github.com/knative/pkg.git
when testing downstream use the correct release branch (#2265)
* when testing downstream use the correct release branch additionally, we re-merge upstream in case new changes appear in HEAD * pr feedback
This commit is contained in:
parent
bfab3c8fc5
commit
fb7ee28566
|
@ -82,19 +82,34 @@ jobs:
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.16.x
|
go-version: 1.16.x
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
go get github.com/google/go-licenses
|
go get github.com/google/go-licenses
|
||||||
- name: Checkout Upstream
|
|
||||||
|
- name: Checkout upstream at ${{ github.base_ref }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
path: ./src/knative.dev/${{ github.event.repository.name }}
|
path: ./src/knative.dev/${{ github.event.repository.name }}
|
||||||
- name: Checkout Downstream
|
|
||||||
|
- name: Merge upstream
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
shell: bash
|
||||||
|
working-directory: ./src/knative.dev/${{ github.event.repository.name }}
|
||||||
|
run: |
|
||||||
|
git remote add upstream https://github.com/${{ github.repository }}.git
|
||||||
|
git fetch upstream ${{ github.base_ref }}
|
||||||
|
git pull --no-rebase --no-commit upstream ${{ github.base_ref }}
|
||||||
|
|
||||||
|
- name: Checkout downstream at ${{ github.base_ref }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.base_ref }}
|
||||||
repository: ${{ matrix.org }}/${{ matrix.repo }}
|
repository: ${{ matrix.org }}/${{ matrix.repo }}
|
||||||
path: ./src/knative.dev/${{ matrix.repo }}
|
path: ./src/knative.dev/${{ matrix.repo }}
|
||||||
- name: Test Downstream
|
|
||||||
|
- name: Test downstream
|
||||||
uses: knative-sandbox/actions-downstream-test@v1
|
uses: knative-sandbox/actions-downstream-test@v1
|
||||||
with:
|
with:
|
||||||
upstream-module: knative.dev/${{ github.event.repository.name }}
|
upstream-module: knative.dev/${{ github.event.repository.name }}
|
||||||
|
|
Loading…
Reference in New Issue