mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-19 15:56:54 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
53 lines
1.2 KiB
YAML
53 lines
1.2 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
|
|
|
|
env:
|
|
GO_VERSION: '1.19'
|
|
|
|
jobs:
|
|
sync_sdk:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
|
|
|
- name: Get the version
|
|
id: get_version
|
|
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
|
|
- name: Install Go tools
|
|
run: |
|
|
make goimports
|
|
|
|
- name: Build CLI
|
|
run: make vela-cli
|
|
|
|
- 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 }}
|