Skip to content

Commit 43a0c27

Browse files
committed
Fix git dubious directory warning more cleanly (actions/checkout#766)
1 parent ca74f01 commit 43a0c27

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/continuous-deployment-workflow.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v1
1414

15+
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
16+
1517
- name: Setup java
1618
uses: actions/setup-java@v3
1719
with:
@@ -36,9 +38,6 @@ jobs:
3638
key: cljdeps-${{ hashFiles('deps.edn') }}-${{ hashFiles ('package.json') }}-${{ hashFiles ('package-lock.json') }}
3739
restore-keys: cljdeps-
3840

39-
- name: Fix git dubious directory ownership error
40-
run: git config --global --add safe.directory /__w/re-com/re-com
41-
4241
- run: bb release-demo
4342

4443
- name: Slack notification

.github/workflows/continuous-integration-workflow.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
runs-on: ubuntu-24.04
1111

1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v5
14+
15+
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
1416

1517
- name: Setup java
1618
uses: actions/setup-java@v3
@@ -36,9 +38,6 @@ jobs:
3638
key: cljdeps-${{ hashFiles('deps.edn') }}-${{ hashFiles ('package.json') }}-${{ hashFiles ('package-lock.json') }}
3739
restore-keys: cljdeps-
3840

39-
- name: Fix git dubious directory ownership error
40-
run: git config --global --add safe.directory /__w/re-com/re-com
41-
4241
- run: bb test
4342

4443
- run: bb release-demo

.github/workflows/docs-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
CLOJARS_TOKEN: ${{ secrets.CLOJARS_TOKEN }}
1717

1818
steps:
19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v5
2020

2121
- name: Setup java
2222
uses: actions/setup-java@v3

0 commit comments

Comments
 (0)