Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: github action for make generate #4997

Closed
wants to merge 18 commits into from
32 changes: 32 additions & 0 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: auto-generate
on: pull_request

jobs:
auto-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- uses: actions/setup-go@v3
with:
go-version: '1.22'

- name: make generate
run: make generate

- name: commit and push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if git diff-index --quiet HEAD; then
echo "no changes detected, nothing to commit"
exit 0
fi

git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: auto-generate"
git push
4 changes: 2 additions & 2 deletions parts/linux/cloud-init/artifacts/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"multiArchVersionsV2": [
{
"renovateTag": "registry=https://mcr.microsoft.com, name=containernetworking/azure-cni",
"latestVersion": "v1.5.35",
"latestVersion": "v1.5.36",
"previousLatestVersion": "v1.5.32",
"containerImagePrefetch": {
"latestVersion": {
Expand Down Expand Up @@ -88,7 +88,7 @@
"multiArchVersionsV2": [
{
"renovateTag": "registry=https://mcr.microsoft.com, name=containernetworking/azure-cns",
"latestVersion": "v1.4.52",
"latestVersion": "v1.4.53",
"containerImagePrefetch": {
"latestVersion": {
"binaries": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"multiArchVersionsV2": [
{
"renovateTag": "registry=https://mcr.microsoft.com, name=containernetworking/azure-cni",
"latestVersion": "v1.5.35",
"latestVersion": "v1.5.36",
"previousLatestVersion": "v1.5.32",
"containerImagePrefetch": {
"latestVersion": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ prefetch() {

ctr -n k8s.io images unmount "$mount_dir"
}
prefetch "mcr.microsoft.com/containernetworking/azure-cni:v1.5.35" "/dropgz"
prefetch "mcr.microsoft.com/containernetworking/azure-cni:v1.5.36" "/dropgz"
prefetch "mcr.microsoft.com/containernetworking/azure-cni:v1.5.32" "/dropgz"
prefetch "mcr.microsoft.com/containernetworking/azure-cni:v1.6.10" "/dropgz"
prefetch "mcr.microsoft.com/containernetworking/azure-cni:v1.6.7" "/dropgz"
Expand Down
Loading