Skip to content

Commit d13fd80

Browse files
reset workspace ownership after build main preview
1 parent 425aa91 commit d13fd80

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/deploy_main_preview.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
packages: write
2323

2424
steps:
25+
- name: Get Actions user id
26+
id: get_uid
27+
run: |
28+
actions_user_id=`id -u $USER`
29+
echo $actions_user_id
30+
echo "uid=$actions_user_id" >> $GITHUB_OUTPUT
31+
2532
- name: checkout
2633
uses: actions/checkout@v2
2734
with:
@@ -30,6 +37,11 @@ jobs:
3037
- name: Build the book
3138
run: |
3239
./build_html.sh
40+
41+
- name: Reset ownership of workspace after build
42+
uses: peter-murray/reset-workspace-ownership-action@v1
43+
with:
44+
user_id: ${{ steps.get_uid.outputs.uid }}
3345

3446
# Push the book's HTML to github-pages
3547
- name: GitHub Pages action

0 commit comments

Comments
 (0)