Update sync-vendor.yml

This commit is contained in:
liujian 2024-11-01 18:49:16 +08:00 committed by joyceliu
parent bb6f0c6ca7
commit 82cc8fd489

View File

@ -5,6 +5,7 @@ on:
push:
paths:
- go.mod
workflow_dispatch:
# Remove all permissions from GITHUB_TOKEN except metadata.
permissions: {}
@ -36,8 +37,9 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Add vendor directory
branch: add-vendor-${{ github.event.number }}
title: [ci-bot] Add vendor directory
body: This [PR](https://github.com/kubesphere/kubekey/pull/${{ github.event.number }}) adds the vendor directory generated by go mod vendor.
token: "${{ secrets.GITHUB_TOKEN }}"
commit-message: "Add vendor directory"
branch: "add-vendor-${{ github.event.number }}"
title: "[ci-bot] Add vendor directory"
body: |
This [PR](https://github.com/kubesphere/kubekey/pull/${{ github.event.number }}) adds the vendor directory generated by go mod vendor.