Skip to content

Commit 3dcb575

Browse files
Merge pull request #1621 from dprince/update_catalog_fixes
Update catalog fixes
2 parents c285f76 + 0fac4dc commit 3dcb575

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

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

Lines changed: 16 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,6 @@ env:
2532
jobs:
2633
build-catalog:
2734
runs-on: ubuntu-latest
28-
if: >
29-
github.event.workflow_run.conclusion == 'success'
3035

3136
steps:
3237
- name: Install Go
@@ -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)