-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support: no such file or directory and suffix is being added to the end of file directory .* #892
Comments
|
cp: no such file or directory: /home/runner/work/solana_tools/solana_tools/client/dist/.* [INFO] ForceOrphan: false |
Hi @abolla22 , |
The |
Here is my new example repo. FYI https://github.com/peaceiris/test-mdbook |
I seem to have this issue as well but I do have the - name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist It used to work fine 5 months ago (sadly logs no longer available). In the latest build I see
The path is correct however, in that workflow I added a list of the directory to confirm it has content:
So I assume it would've worked if the copy command had been just EDIT Looks like assuming there are hidden files is the issue here. › tree -a
.
├── dst
├── src
│ ├── .foo
└── src-no-hidden
└── foo
› cp -RfL src/.* dst
› cp -RfL src-no-hidden/.* dst
zsh: no matches found: src-no-hidden/.*
› tree -a
.
├── dst
│ └── .foo
├── src
│ └── .foo
└── src-no-hidden
└── foo At this line both actions-gh-pages/src/git-utils.ts Line 60 in 579d468
UpdateI think I was a bit too quick commenting on this issue! I did some more debugging and this is indeed just a silently accepted command, it will copy all other files even if the So it seems like this is working as intended and the reason I saw |
I have the similar issue, the actions-gh-pages/src/git-utils.ts Lines 59 to 60 in 74d2f4c
$ node
> const {ls, cp}=require('shelljs')
> const publishDir = 'dist'
> cp('-RfL', [`${publishDir}/*`, `${publishDir}/.*`], '/tmp/');
cp: no such file or directory: dist/.*
[String: ''] {
stdout: '',
stderr: 'cp: no such file or directory: dist/.*',
code: 1,
cat: [Function: bound ],
exec: [Function: bound ],
grep: [Function: bound ],
head: [Function: bound ],
sed: [Function: bound ],
sort: [Function: bound ],
tail: [Function: bound ],
to: [Function: bound ],
toEnd: [Function: bound ],
uniq: [Function: bound ]
}
>
undefined
> ls(`${publishDir}/*`)
[
'app.aeeadc2a.css',
'chunk-vendors.caf800b8.css',
'dist/favicon.ico',
...
stdout: 'app.aeeadc2a.css\n' +
'chunk-vendors.caf800b8.css\n' +
'dist/favicon.ico\n' +
...
stderr: null,
code: 0,
cat: [Function: bound ],
exec: [Function: bound ],
grep: [Function: bound ],
head: [Function: bound ],
sed: [Function: bound ],
sort: [Function: bound ],
tail: [Function: bound ],
to: [Function: bound ],
toEnd: [Function: bound ],
uniq: [Function: bound ]
]
> ls(`${publishDir}/.*`)
ls: no such file or directory: dist/.*
[
stdout: '',
stderr: 'ls: no such file or directory: dist/.*',
code: 2,
cat: [Function: bound ],
exec: [Function: bound ],
grep: [Function: bound ],
head: [Function: bound ],
sed: [Function: bound ],
sort: [Function: bound ],
tail: [Function: bound ],
to: [Function: bound ],
toEnd: [Function: bound ],
uniq: [Function: bound ]
]
> I debugged this line of code ( Maybe it should process |
I was planning to reply to this but time got away for me and I didn't. But anyhow, it seems like you came to the exact same conclusion as me. If there are no hidden files an error will be thrown. However, the reason I never PRed this like you did was because even though this fails, the library used fails silently and proceeds to the next element in the lit for So for me, even though I don't have any hidden files and even though the command fails, it still copied all the other files. Did you actually confirm that without this fix the non hidden files does not get copied and with your fix they do? Because even though we had the same issue and came to the same conclusion, this fix was not needed for me. |
That's it, no matter whether there are hidden files, files will be copied successfully. So I think this issue and PR #1047 could be closed. @liudonghua123 see my workflow runs : "nothing to commit" because the static files didn't change at all |
Checklist
Describe your question
I'm trying to host the html report to the github pages it was working earlier and recently started failing and unable to find the path to the folder but when i debugged the file path exists. The only difference im seeing is its tailing .* as a suffix to the file path and unable to get the html.
Relevant links
Public repository: YAML config: YAML workflow: - name: Deploy GitHubPage uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3 if: success() || failure() with: github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} publish_dir: projects/big-bend/test-report
Relevant log output
/usr/bin/git rm -r --ignore-unmatch * rm '.nojekyll' rm 'index.html' [INFO] chdir /home/runner/actions_github_pages_1682001738777 [INFO] prepare publishing assets [INFO] copy /runner/_work/ui/ui/projects/big-bend/test-report to /home/runner/actions_github_pages_1682001738777 **cp: no such file or directory: /runner/_work/ui/ui/projects/big-bend/test-report/.*** [INFO] delete excluded assets rm: no paths given [INFO] Created /home/runner/actions_github_pages_1682001738777/.nojekyll
Additional context.
During debugging its also confirmed that the file path and file exists.
cd test-report pwd ls
/runner/_work/ui/ui/projects/big-bend/test-report index.html
The text was updated successfully, but these errors were encountered: