Skip to content

Commit 5434130

Browse files
committed
Fix catalog build workflow
1 parent 5daf17a commit 5434130

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
name: Build catalog for OLM upgrade testing
22

33
on:
4+
5+
workflow_dispatch:
6+
47
workflow_run:
58
workflows: ["openstack operator image builder"]
69
types:
710
- completed
11+
branches:
12+
- '*'
813
secrets:
914
IMAGENAMESPACE:
1015
required: true
@@ -40,6 +45,15 @@ jobs:
4045
with:
4146
path: ./openstack-operator
4247

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

0 commit comments

Comments
 (0)