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 }}