Skip to content

Commit

Permalink
Use image if branch name is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
muralov committed Jan 24, 2024
1 parent 7190195 commit b303eac
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/run-upgrade-tests-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ jobs:
env:
BACKEND_TYPE: NATS
steps:
- name: Pre-upgrade checkout
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.pre-upgrade-branch }}
- name: Pre-upgrade checkout
run: |
# uses pre-upgrade-image-tag if pre-upgrade-branch is not provided
if [ -z "${{ inputs.pre-upgrade-branch }}" ]; then
git checkout -b ${{ inputs.pre-upgrade-image-tag }}
else
git checkout ${{ inputs.pre-upgrade-branch }}
fi
- name: Install k3d tools
run: make -C hack/ci/ install-k3d-tools
Expand Down Expand Up @@ -86,9 +92,13 @@ jobs:
GITHUB_REPO: "eventing-manager"

- name: Post-upgrade checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.post-upgrade-branch }}
run: |
# uses post-upgrade-image-tag if post-upgrade-branch is not provided
if [ -z "${{ inputs.post-upgrade-branch }}" ]; then
git checkout -b ${{ inputs.post-upgrade-image-tag }}
else
git checkout ${{ inputs.post-upgrade-branch }}
fi
- name: Install Eventing manager after Upgrade
run: |
Expand Down

0 comments on commit b303eac

Please sign in to comment.