Skip to content

Commit 9708459

Browse files
committed
Set latesttag on upgrades catalog
.
1 parent fea8d51 commit 9708459

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
workflows: ["openstack operator image builder"]
66
types:
77
- completed
8+
branches:
9+
- '*'
810
secrets:
911
IMAGENAMESPACE:
1012
required: true
@@ -40,6 +42,15 @@ jobs:
4042
with:
4143
path: ./openstack-operator
4244

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

0 commit comments

Comments
 (0)