Skip to content

Commit 1e45d03

Browse files
authored
Configure git user for CI in deployment workflow
Added git configuration step for CI user before checking out the main repository.
1 parent 41fb667 commit 1e45d03

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deployment.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ jobs:
2525
run:
2626
shell: bash -l {0}
2727
steps:
28-
- name: Main repo
28+
- name: configure git
29+
run: |
30+
git fetch --prune --unshallow
31+
git config --global user.email "ci@diracgrid.org"
32+
git config --global user.name "DIRACGrid CI"
33+
- name: Checkout Main repo
2934
uses: actions/checkout@v5
3035
with:
3136
token: ${{ secrets.PAT || github.token }}
@@ -35,10 +40,6 @@ jobs:
3540
repository: DIRACGrid/DIRAC
3641
path: ../DIRAC
3742
token: ${{ secrets.PAT || github.token }}
38-
run: |
39-
git fetch --prune --unshallow
40-
git config --global user.email "ci@diracgrid.org"
41-
git config --global user.name "DIRACGrid CI"
4243
- uses: actions/setup-python@v6
4344
with:
4445
python-version: "3.11"

0 commit comments

Comments
 (0)