File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 11name : Build catalog for OLM upgrade testing
22
33on :
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
2532jobs :
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
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 :
You can’t perform that action at this time.
0 commit comments