File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-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'
3035
3136 steps :
3237 - name : Install Go
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 :
You can’t perform that action at this time.
0 commit comments