File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,21 @@ jobs:
4646 runs-on : ubuntu-latest
4747 container :
4848 image : mcr.microsoft.com/playwright:v1.57.0-noble
49- options : --user 1001
49+ options : --user 0 # Run as root to allow installation of git-lfs
5050 defaults :
5151 run :
5252 working-directory : ./spock-website
5353 steps :
54+ # Unlike the default image, the playwright image does not have git-lfs installed
55+ - name : Install git-lfs and switch to non-root user
56+ run : |
57+ apt-get update
58+ apt-get install -y git-lfs
59+ echo "Fixing permissions for non-root user and switching user"
60+ chown -R 1001:1001 /home/github
61+ su - $(id -un 1001)
62+ working-directory : ./ # the default only exists after checkout
63+
5464 - name : Checkout
5565 uses : actions/checkout@v6
5666 with :
You can’t perform that action at this time.
0 commit comments