Skip to content

Commit

Permalink
fix: use workflow as external
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Apr 5, 2024
1 parent 591b5e3 commit 5753893
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5753893

Please sign in to comment.