File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 22
22
packages : write
23
23
24
24
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
+
25
32
- name : checkout production
26
33
uses : actions/checkout@v2
27
34
with :
31
38
run : |
32
39
./build_html.sh
33
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 }}
45
+
34
46
# Push the book's HTML to github-pages
35
47
- name : GitHub Pages action
36
48
49
61
- name : Build the book
50
62
run : |
51
63
./build_html.sh
64
+
65
+ - name : Reset ownership of workspace after build
66
+ uses : peter-murray/reset-workspace-ownership-action@v1
67
+ with :
68
+ user_id : ${{ steps.get_uid.outputs.uid }}
52
69
53
70
# Push the book's HTML to github-pages
54
71
- name : GitHub Pages action
You can’t perform that action at this time.
0 commit comments