Skip to content

Commit 29befa0

Browse files
committed
Flyttet set git config
1 parent f271f75 commit 29befa0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/buildAndPublish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ jobs:
3535
with:
3636
fetch-depth: 0
3737

38+
- name: "Set Git Config"
39+
run: |
40+
git config --global user.email "<>"
41+
git config --global user.name "GitHub Action"
42+
git config --system --add safe.directory "$GITHUB_WORKSPACE"
43+
3844
- name: "Check for changes in src folder"
3945
run: |
4046
echo "::group::Check for changes in source code"
@@ -69,12 +75,6 @@ jobs:
6975
fi
7076
echo "::endgroup::"
7177
72-
- name: "Set Git Config"
73-
run: |
74-
git config --global user.email "<>"
75-
git config --global user.name "GitHub Action"
76-
git config --system --add safe.directory "$GITHUB_WORKSPACE"
77-
7878
- name: Authenticate node
7979
uses: navikt/sf-platform/.github/actions/authenticateNode@main
8080
if: ${{ github.ref_name == 'refs/heads/main' }}

0 commit comments

Comments
 (0)