File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 55 schedule :
66 - cron : ' 0 */2 * * *' # every 2 hours
77 workflow_dispatch :
8+ inputs :
9+ branch_name :
10+ default : ' main'
11+ type : string
12+ workflow_call :
13+ inputs :
14+ branch_name :
15+ default : ' main'
16+ type : string
817
918jobs :
1019
1120 crd-sync-check :
12- if : github.repository_owner == 'openstack-k8s-operators'
21+ # if: github.repository_owner == 'openstack-k8s-operators'
1322 name : CRD sync check
1423 runs-on : ubuntu-latest
1524
1625 steps :
26+
27+ - name : Set branch
28+ id : set_branch
29+ run : |
30+ BRANCH_NAME="${{ inputs.branch_name || github.ref_name }}"
31+ echo "branch name set to: $BRANCH_NAME"
32+ echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
33+
1734 - name : Checkout repository
1835 uses : actions/checkout@v4
1936 with :
20- ref : ${{ github.ref_name }}
37+ ref : ${{ steps.set_branch.outputs.branch_name }}
2138
2239 - name : run make force-bump
2340 shell : bash
2441 run : |
25- BRANCH='${{ github.ref_name }}' make force-bump
42+ BRANCH='${{ steps.set_branch.outputs.branch_name }}' make force-bump
2643
2744 - name : run make bindata
2845 shell : bash
You can’t perform that action at this time.
0 commit comments