mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-20 17:47:15 +00:00
Some checks failed
Webhook Upgrade Validation / webhook-upgrade-check (push) Failing after 34s
Signed-off-by: vishal210893 <vishal210893@gmail.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Sync SDK
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- vela-templates/definitions/internal/**
|
|
- pkg/definition/gen_sdk/**
|
|
- .github/workflows/sync-sdk.yaml
|
|
tags:
|
|
- "v*"
|
|
branches:
|
|
- master
|
|
- release-*
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
sync_sdk:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
|
|
|
- name: Env setup
|
|
uses: ./.github/actions/env-setup
|
|
|
|
- name: Install Go tools
|
|
run: |
|
|
make goimports
|
|
|
|
- name: Build CLI
|
|
run: make vela-cli
|
|
|
|
- name: Setup KinD
|
|
uses: ./.github/actions/setup-kind-cluster
|
|
with:
|
|
name: sync-sdk
|
|
|
|
- name: Get the version
|
|
id: get_version
|
|
run: echo "VERSION=${GITHUB_REF}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Sync SDK to kubevela/kubevela-go-sdk
|
|
run: bash ./hack/sdk/sync.sh
|
|
env:
|
|
SSH_DEPLOY_KEY: ${{ secrets.GO_SDK_DEPLOY_KEY }}
|
|
VERSION: ${{ steps.get_version.outputs.VERSION }}
|
|
COMMIT_ID: ${{ github.sha }}
|