mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-20 08:13:23 +00:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](fac708d667...93397bea11)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
40 lines
940 B
YAML
40 lines
940 B
YAML
name: sync-api
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'apis/**'
|
|
- 'pkg/oam/**'
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
GO_VERSION: '1.19'
|
|
|
|
jobs:
|
|
sync-core-api:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
|
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: Sync to kubevela-core-api Repo
|
|
env:
|
|
SSH_DEPLOY_KEY: ${{ secrets.VELA_API_DEPLOY }}
|
|
VERSION: ${{ steps.get_version.outputs.VERSION }}
|
|
COMMIT_ID: ${{ github.sha }}
|
|
run: |
|
|
bash ./hack/apis/clientgen.sh
|
|
bash ./hack/apis/sync.sh sync
|