Skip to content

Commit

Permalink
fix: checkout target name for client
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 ea196af commit 72a5f69
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
type: string
default: main
required: false
client_checkout_target_name:
description: "Switch branches or restore working tree files to build vald"
type: string
default: main
required: false
enable_tag_push:
description: "Whether or not to push tag"
type: boolean
Expand All @@ -26,6 +31,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.client_checkout_target_name }}
- name: Set Git config
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
uses: ./.github/workflows/_build.yaml
secrets: inherit
with:
vald_checkout_target_name: main # sync based on vald main branch.
vald_checkout_target_name: main # sync based on vald main branch.
client_checkout_target_name: main
enable_tag_push: true

semver-auto:
Expand All @@ -41,12 +42,13 @@ jobs:
IMAGE_TAG: ${{ needs.semver-auto.outputs.VERSION }}
secrets: inherit

build:
needs:
- semver-auto
- prepare
uses: ./.github/workflows/_build.yaml
secrets: inherit
with:
vald_checkout_target_name: ${{ needs.semver-auto.outputs.VERSION }} # sync based on vald released version.
enable_tag_push: true
# build:
# needs:
# - semver-auto
# - prepare
# uses: ./.github/workflows/_build.yaml
# secrets: inherit
# with:
# vald_checkout_target_name: ${{ needs.semver-auto.outputs.VERSION }} # sync based on vald released version.
# client_checkout_target_name: ${{ needs.semver-auto.outputs.RELEASE_BRANCH_NAME }}
# enable_tag_push: true

0 comments on commit 72a5f69

Please sign in to comment.