build(ci): git config local only in workflow
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 18 Sep 2023 14:13:56 +0000 (16:13 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 18 Sep 2023 14:13:56 +0000 (16:13 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/clone-count.yml

index aa10b2fa12c67846eba0c831bc8c48cb05eeb8d0..43119339ba527a8b35fc0f5bc05c43523ba56d8c 100644 (file)
@@ -78,8 +78,8 @@ jobs:
             echo "<a href='$repo'><img alt='GitHub Clones' src='$shields$url&logo=github'></a>" >> CLONE.md
             echo '```' >> CLONE.md
 
-            git config --global user.name "GitHub Action"
-            git config --global user.email "action@github.com"
+            git config --local user.name "GitHub Action"
+            git config --local user.email "action@github.com"
             git add CLONE.md
             git commit -m "docs: create clone count badge"
           fi