Closed
Description
Describe the bug
Once my website is pushed on the gh-pages
branch, the script fails with:
error: failed to delete '/home/runner/work/website/website/github-pages-deploy-action-temp-deployment-folder': Permission denied
Reproduction Steps
I just tried to build my website using this workflow https://github.com/leo-colisson/website/runs/4154643484?check_suite_focus=true
Logs
Run JamesIves/github-pages-deploy-action@4.1.5
GitHub Pages Deploy Action 🚀
🚀 Getting Started Guide: https://github.com/marketplace/actions/deploy-to-github-pages
❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues
📣 Maintained by James Iv
69A1
es: https://jamesiv.es
💖 Support: https://github.com/sponsors/JamesIves
Checking configuration and starting deployment… 🚦
Deploying using Deploy Token… 🔑
Configuring git…
/usr/bin/git config user.name tobiasBora
/usr/bin/git config user.email tobias.bora@gmail.com
/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
/usr/bin/git remote rm origin
/usr/bin/git remote add origin ***github.com/leo-colisson/website.git
Git configured… 🔧
Starting to commit changes…
/usr/bin/git ls-remote --heads ***github.com/leo-colisson/website.git refs/heads/gh-pages
Creating worktree…
/usr/bin/git worktree add --no-checkout --detach github-pages-deploy-action-temp-deployment-folder
Preparing worktree (detached HEAD 6fe0d2e)
/usr/bin/git checkout --orphan gh-pages
Switched to a new branch 'gh-pages'
Created the gh-pages branch… 🔧
/usr/bin/git reset --hard
/usr/bin/git commit --no-verify --allow-empty -m Initial gh-pages commit
[gh-pages (root-commit) 2c24bad] Initial gh-pages commit
/usr/bin/rsync -q -av --checksum --progress /home/runner/work/website/website/result/. github-pages-deploy-action-temp-deployment-folder --delete --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github
Checking if there are files to commit…
/usr/bin/git add --all .
/usr/bin/git checkout -b github-pages-deploy-action/6kdalw7oq
Switched to a new branch 'github-pages-deploy-action/6kdalw7oq'
/usr/bin/git commit -m Deploying to gh-pages from @ leo-colisson/website@6fe0d2e04ef365633842f4f9ccf326bf84867452 🚀 --quiet --no-verify
/usr/bin/git push --force ***github.com/leo-colisson/website.git github-pages-deploy-action/6kdalw7oq:gh-pages
remote:
remote: Create a pull request for 'gh-pages' on GitHub by visiting:
remote: https://github.com/leo-colisson/website/pull/new/gh-pages
remote:
To https://github.com/leo-colisson/website.git
* [new branch] github-pages-deploy-action/6kdalw7oq -> gh-pages
Changes committed to the gh-pages branch… 📦
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/6kdalw7oq
Reset branch 'github-pages-deploy-action/6kdalw7oq'
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
error: failed to delete '/home/runner/work/website/website/github-pages-deploy-action-temp-deployment-folder': Permission denied
Error: The process '/usr/bin/git' failed with exit code 255
Deployment failed! ❌