From b1c42008157d3b3f4bae59ec8c5ed3d540c616bc Mon Sep 17 00:00:00 2001 From: Rintaro Okamura Date: Tue, 26 May 2020 17:27:36 +0900 Subject: [PATCH 1/2] :green_heart: not to add go.mod & go.sum when /format runs Signed-off-by: Rintaro Okamura --- .github/workflows/chatops.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chatops.yml b/.github/workflows/chatops.yml index 50edcef80e..10eef4d2e0 100644 --- a/.github/workflows/chatops.yml +++ b/.github/workflows/chatops.yml @@ -435,7 +435,7 @@ jobs: sudo make prettier/install # sudo make dockfmt/install - echo "Update license headers and format go codes/yaml/Dockerfile" + echo "Update license headers and format go codes/yaml" make update/goimports make format/yaml @@ -448,8 +448,8 @@ jobs: git config --global user.name "vdaas-ci" git config --global user.email "ci@vdaas.org" - git add . - git commit --signoff -m ":robot: Update license headers and formatting go codes" + git add cmd example hack internal k8s pkg + git commit --signoff -m ":robot: Update license headers / Format go codes and yaml files" git remote set-url origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" From 0d3628617d012c36f43acf56adc0d9ec3c582428 Mon Sep 17 00:00:00 2001 From: Rintaro Okamura Date: Tue, 26 May 2020 17:44:16 +0900 Subject: [PATCH 2/2] Update .github/workflows/chatops.yml --- .github/workflows/chatops.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/chatops.yml b/.github/workflows/chatops.yml index 10eef4d2e0..1187192acd 100644 --- a/.github/workflows/chatops.yml +++ b/.github/workflows/chatops.yml @@ -448,7 +448,8 @@ jobs: git config --global user.name "vdaas-ci" git config --global user.email "ci@vdaas.org" - git add cmd example hack internal k8s pkg + git add . + git reset go.mod go.sum git commit --signoff -m ":robot: Update license headers / Format go codes and yaml files" git remote set-url origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"