Sfoglia il codice sorgente

move git config to top of workflow

TheWildJames 2 mesi fa
parent
commit
0e27dda9e8

+ 0 - 2
.github/actions/clean-kernel-flags/action.yml

@@ -20,7 +20,5 @@ runs:
 
         # Commit changes to avoid dirty state during build
         cd ${{ github.workspace }}/kernel/common
-        git config --global user.name "github-actions[bot]"
-        git config --global user.email "github-actions[bot]@users.noreply.github.com"
         git add .
         git commit -m "Wild: Clean Dirty Flag"

+ 4 - 0
.github/actions/setup-build-environment/action.yml

@@ -7,6 +7,10 @@ runs:
     - shell: bash
       run: |
         set -euo pipefail
+
+        git config --global user.name "github-actions[bot]"
+        git config --global user.email "github-actions[bot]@users.noreply.github.com"
+
         mkdir -p "${{ github.workspace }}/kernel"
         mkdir -p "${{ github.workspace }}/git-repo"
         curl -L https://storage.googleapis.com/git-repo-downloads/repo -o "${{ github.workspace }}/git-repo/repo"