Skip to content

Commit aea1382

Browse files
committed
Fix ownership of checked out git tree.
actions/runner#2033 Signed-off-by: Kurt Garloff <[email protected]>
1 parent 1cdd90f commit aea1382

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build-production.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
id: checkout
15+
- name: Set ownership
16+
run: |
17+
# this is to fix GIT not liking owner of the checkout dir
18+
chown -R $(id -u):$(id -g) $PWD
1419
# Use GitHub Node Action to install node_modules
1520
- uses: actions/setup-node@v4
1621
with:

.github/workflows/build-staging.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
id: checkout
15+
- name: Set ownership
16+
run: |
17+
# this is to fix GIT not liking owner of the checkout dir
18+
chown -R $(id -u):$(id -g) $PWD
1519
# Use GitHub Node Action to install node_modules
1620
- uses: actions/setup-node@v4
1721
with:

0 commit comments

Comments
 (0)