Skip to content

Commit 24ac8e9

Browse files
authored
fix github workflows (#34)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
1 parent b3e7312 commit 24ac8e9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release_sync_image.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
echo "::set-output name=source_image::385595570414.dkr.ecr.us-west-2.amazonaws.com/tidbcloud/vector:nightly-$(git rev-parse --short HEAD)"
2525
echo "::set-output name=target_registry::gcr.io/pingcap-public"
2626
# remove the leading "v" of the ref name
27-
ref_name=${{ github.ref_name }} echo "::set-output name=target_image::dbaas/vector:${ref_name:1}-debian"
27+
export ref_name="${{ github.ref_name }}"
28+
echo "::set-output name=target_image::dbaas/vector:${ref_name:1}-debian"
2829
echo "::set-output name=is_override::true"
2930
3031
- name: Run Dispatch on tidbcloud/cloud-release-management
3132
run: |
3233
curl -X POST \
3334
-H "Accept: application/vnd.github.everest-preview+json" \
34-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
35+
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
3536
-H "X-GitHub-Api-Version: 2022-11-28" \
3637
https://api.github.com/repos/tidbcloud/cloud-release-management/actions/workflows/multi-hub-sync.yml/dispatches \
37-
-d '{"ref":"main","inputs":{"source_image":"${{ steps.set-inputs.outputs.source_image }}","target_registry":"${{ steps.set-inputs.outputs.target_registry }}","target_image":"${{ steps.set-inputs.outputs.target_image }}","is_override":${{ steps.set-inputs.outputs.is_override }}}}'
38+
-d '{"ref":"main","inputs":{"source_image":"${{ steps.set-inputs.outputs.source_image }}","target_registry":"${{ steps.set-inputs.outputs.target_registry }}","target_image":"${{ steps.set-inputs.outputs.target_image }}","is_override":"${{ steps.set-inputs.outputs.is_override }}"}}'

0 commit comments

Comments
 (0)