Action failed with "ENOENT: no such file or directory with force_orphan
See original GitHub issueDescribe the bug
I’m trying to deploy the repo root but it fails:
Switched to a new branch 'gh-pages'
[INFO] prepare publishing assets
[INFO] delete .git
[INFO] copy /home/runner/work/chip8/chip8/ to /home/runner/actions_github_pages_1602884889152
[INFO] delete excluded assets
[INFO] delete /home/runner/actions_github_pages_1602884889152/.github
Error: Action failed with "ENOENT: no such file or directory, realpath '/home/runner/actions_github_pages_1602884889152/.github/workflows'"
To Reproduce
https://github.com/letmaik/chip8/runs/1266688809?check_suite_focus=true
Expected behavior
Should not fail with default settings.
Your YAML file
https://github.com/letmaik/chip8/blob/master/.github/workflows/gh-pages.yml
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
npm install in GitHub Action fails with "ENOENT: no such file ...
At long wait, I found the solution here: Install an npm module from a private GitHub repository using GitHub Actions
Read more >nektos/act - Gitter
Got ::error::Unable to locate executable file: docker with aws-actions-amazon-ecr-login@v1 action. It's halfway through the workflow, and docker is used ~10 ...
Read more >Cannot deploy Azure app service via GitHub Actions after ...
Error : ENOENT: no such file or directory, open '/home/site/wwwroot/Azure.Storage.Blobs.dll' An error has occurred during web site deployment ...
Read more >GitHub action fails with No such file or directory
I am trying a very basic GitHub CI actions with my PlatformIO project. I am using almost the official Workflow provided by the...
Read more >github actions: debugging 'no such file or directory'
Unfortunately, every time the action fired it threw an error. /home/runner/work/_temp/eb8554b7-c24c-42a2-b406-ad1796ed6740.sh: line 1: /home/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unfortunately that gives the same error: https://github.com/netwerk-digitaal-erfgoed/requirements-template/runs/1279644649?check_suite_focus=true#step:5:53
To be clear: the workflow ‘succeeds’ (is green), but because of the above error the GitHub Pages output is not updated.
I’m guessing this has to do with
publish_dir: ./
, because the root dir contains the.git
dir while subdirs (public/
for instance) wouldn’t.It also breaks when
force_orphan
is not set totrue
(andpublish_dir: ./
): https://github.com/netwerk-digitaal-erfgoed/requirements-template/runs/1279392636?check_suite_focus=true#step:5:21, with: