aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2019-12-07 15:45:27 -0800
committerGravatar Miek Gieben <miek@miek.nl> 2019-12-07 23:45:27 +0000
commit6cf1c086aca54d44a63cd24803ec429dd08ef9a2 (patch)
treef6a804bf9d5d9be6bd1ab53f168805bb2fed0f88
parenta2481250e0bfeaa48159b744db62c8e0128415d4 (diff)
downloadcoredns-6cf1c086aca54d44a63cd24803ec429dd08ef9a2.tar.gz
coredns-6cf1c086aca54d44a63cd24803ec429dd08ef9a2.tar.zst
coredns-6cf1c086aca54d44a63cd24803ec429dd08ef9a2.zip
Update auto go mod tidy workflow to remove user association (#3517)
This PR updates go.tidy.yml, and use pseudo name `coredns-auto-go-mod-tidy[bot]`, so that the commit is not associated with real user. Otherwise the commit history could be confusing. This is similar to what `dependabot[bot]` is doing for commits generated by bots. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
-rw-r--r--.github/workflows/go.tidy.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/go.tidy.yml b/.github/workflows/go.tidy.yml
index e64123b36..3c6aa2be2 100644
--- a/.github/workflows/go.tidy.yml
+++ b/.github/workflows/go.tidy.yml
@@ -5,9 +5,9 @@ on:
branches:
- 'master'
paths:
+ - '.github/workflows/go.tidy.yml'
- 'go.mod'
- 'go.sum'
- - '.github/workflows/go.tidy.yml'
jobs:
fix:
@@ -30,14 +30,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- git config user.name "${GITHUB_ACTOR}"
- git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
+ git config user.name "coredns-auto-go-mod-tidy[bot]"
+ git config user.email "coredns-auto-go-mod-tidy[bot]@users.noreply.github.com"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
-
name: Commit and push changes
run: |
git add .
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
- git commit -m 'auto go tidy'
+ git commit -m 'auto go mod tidy'
git push
fi