From 5753893cd7bfea1c01daed08c688b0a593b7d737 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Fri, 5 Apr 2024 15:43:27 +0900 Subject: [PATCH] fix: use workflow as external Signed-off-by: hlts2 --- .github/workflows/sync.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index e3e61071..b2ff5c9f 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -19,21 +19,24 @@ on: # schedule: # - cron: "*/10 * * * *" jobs: - sync-main: - uses: ./.github/workflows/_build.yaml + sync: + uses: ./.github/workflows/_build.yaml # reusable workflow of self repository secrets: inherit + with: + vald_checkout_target_name: main semver-auto: needs: - - sync-main - uses: ./.github/workflows/_semver-auto.yaml + - sync + # uses: ./.github/workflows/_semver-auto.yaml # reusable workflow of external repository + uses: vdaas/vald-ci-labs/.github/workflows/_build.yaml@fix/ci/two-version-support-for-client secrets: inherit - prepare-release: + prepare: if: ${{ needs.semver-auto.outputs.RELEASE == 'true' }} needs: - semver-auto - uses: ./.github/workflows/_prepare-release.yaml + uses: ./.github/workflows/_prepare-release.yaml # reusable workflow of external repository with: IMAGE_TAG: ${{ needs.semver-auto.outputs.VERSION }} secrets: inherit