Skip to content

Commit d5b374f

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

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

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

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

33
on:
4+
5+
workflow_dispatch:
6+
branches:
7+
- '*'
8+
49
workflow_run:
510
workflows: ["openstack operator image builder"]
611
types:
712
- completed
13+
branches:
14+
- '*'
815
secrets:
916
IMAGENAMESPACE:
1017
required: true
@@ -25,8 +32,8 @@ env:
2532
jobs:
2633
build-catalog:
2734
runs-on: ubuntu-latest
28-
if: >
29-
github.event.workflow_run.conclusion == 'success'
35+
#if: >
36+
# github.event.workflow_run.conclusion == 'success'
3037

3138
steps:
3239
- name: Install Go
@@ -40,6 +47,15 @@ jobs:
4047
with:
4148
path: ./openstack-operator
4249

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

0 commit comments

Comments
 (0)