From ca191ee175ad0e9ef81087a0d84956fb6ea5cc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=A1gr?= Date: Wed, 26 Feb 2025 16:11:18 +0100 Subject: [PATCH] Use default sync workflow --- .github/workflows/release-branch-sync.yaml | 39 +++------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/.github/workflows/release-branch-sync.yaml b/.github/workflows/release-branch-sync.yaml index eec5d453f..e99aa01e6 100644 --- a/.github/workflows/release-branch-sync.yaml +++ b/.github/workflows/release-branch-sync.yaml @@ -1,43 +1,14 @@ name: Release Branch sync on: - workflow_dispatch: - inputs: - source_branch: - type: string - required: false - default: '18.0' - target_branch: - type: string - required: false - default: olive push: branches: - - '18.0' + - '*' schedule: - cron: '0 * * * *' - jobs: - force-push: - env: - source_branch: ${{ github.event.inputs.source_branch || '18.0' }} - target_branch: ${{ github.event.inputs.target_branch || 'olive' }} - runs-on: ubuntu-latest - if: github.repository_owner == 'openstack-k8s-operators' - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Git config - run: | - git config user.name "openstack-k8s-operators-ci" - git config user.email "openstack-k8s-operators-ci@github.com" - - - name: Force Push Branch - run: | - git fetch origin ${{ env.source_branch }} - git checkout ${{ env.source_branch }} - git push --force origin ${{ env.source_branch }}:${{ env.target_branch }} \ No newline at end of file + call-build-workflow: + uses: openstack-k8s-operators/openstack-k8s-operators-ci/.github/workflows/release-branch-sync.yaml@main + with: + source_branch: 18.0 \ No newline at end of file