mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
author liujian <54946465+redscholar@users.noreply.github.com> 1730687587 +0800 committer joyceliu <joyceliu@yunify.com> 1730699443 +0800 fix: failed to install without image_registry (#2442) Signed-off-by: joyceliu <joyceliu@yunify.com> Co-authored-by: joyceliu <joyceliu@yunify.com> Signed-off-by: joyceliu <joyceliu@yunify.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: SyncVendor
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- go.mod
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
vendor:
|
|
name: sync vendor
|
|
runs-on: self-runner-kubesphere
|
|
if: github.repository == 'kubesphere/kubekey'
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.22.0'
|
|
|
|
- name: Run go mod vendor
|
|
run: go mod vendor
|
|
|
|
- name: Commit vendor directory
|
|
run: |
|
|
git config --global user.name 'ks-ci-bot'
|
|
git config --global user.email 'ci-bot@kubesphere.io'
|
|
git add vendor
|
|
git commit -m 'Add vendor directory'
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
commit-message: "Add vendor directory"
|
|
branch: "add-vendor-${{ github.sha }}"
|
|
delete-branch: true
|
|
title: "[ci-bot] Add vendor directory"
|
|
body: |
|
|
This [PR](https://github.com/kubesphere/kubekey/pull/${{ github.sha }}) adds the vendor directory generated by go mod vendor.
|