File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed
Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 1+ name : CRD sync check olive branch
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 10 * * 6' # 10AM UTC Saturday
6+ workflow_dispatch :
7+
8+ jobs :
9+ call-build-workflow :
10+ # if: github.repository_owner == 'openstack-k8s-operators'
11+ uses : .github/workflows/crd-sync-check.yaml@main
12+ with :
13+ branch_name : olive
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
2946 run : |
3047 make bindata
3148
32- - name : Fail if there are local CRD changes requiring a CRD sync
49+ - name : Fail if there are local CRD changes in bindata/crds
3350 run : |
3451 git diff --quiet bindata/crds
You can’t perform that action at this time.
0 commit comments