Skip to content

Commit 11eddce

Browse files
committed
Set latesttag on upgrades catalog
1 parent fea8d51 commit 11eddce

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/catalog-openstack-operator-upgrades.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jobs:
4040
with:
4141
path: ./openstack-operator
4242

43+
- name: Get branch name
44+
id: branch-name
45+
uses: tj-actions/branch-names@v7
46+
47+
- name: Set latest tag for non main branch
48+
if: "${{ steps.branch-name.outputs.current_branch != 'main' }}"
49+
run: |
50+
echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
51+
4352
- name: Install opm
4453
uses: redhat-actions/openshift-tools-installer@v1
4554
with:

0 commit comments

Comments
 (0)