Skip to content

Commit 0bc8199

Browse files
committed
test
1 parent f6b41da commit 0bc8199

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/crd-sync-check.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,41 @@ on:
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

918
jobs:
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

0 commit comments

Comments
 (0)