Skip to content
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

bug: 🐝 Cannot deploy from the root of the repo (?) #1694

Closed
gaborcsardi opened this issue Sep 26, 2024 · 13 comments · Fixed by #1701
Closed

bug: 🐝 Cannot deploy from the root of the repo (?) #1694

gaborcsardi opened this issue Sep 26, 2024 · 13 comments · Fixed by #1701
Assignees
Labels
bug 🐝 This issue describes a bug.

Comments

@gaborcsardi
Copy link

Describe the bug

I have a build failing with

...
/usr/bin/git checkout -B github-pages-deploy-action/ayzsk9y5k
fatal: detected dubious ownership in repository at '/__w/cran-metadata/cran-metadata/github-pages-deploy-action-temp-deployment-folder'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/cran-metadata/cran-metadata/github-pages-deploy-action-temp-deployment-folder
Error: The process '/usr/bin/git' failed with exit code 128
Notice: Deployment failed! ❌

See https://github.com/r-hub/cran-metadata/actions/runs/11054520728/job/30711489044#step:5:63
Workflow file: https://github.com/r-hub/cran-metadata/blob/fc798e20c81ab6a347bf2ed19dd1226104e43ec0/.github/workflows/cran-update.yml

After the suggested fix: r-hub/cran-metadata@04bbb0c
the build is green: https://github.com/r-hub/cran-metadata/actions/runs/11054605847/job/30711786063

Do you think this is an issue with the deploy action?

Reproduction Steps

Fork the https://github.com/r-hub/cran-metadata repo (all branches), enable actions, trigger the cran-update action on the deploy-bug branch.

Logs

See above and at https://github.com/r-hub/cran-metadata/actions/runs/11054520728/job/30711489044#step:5:63

Workflow

See above and at https://github.com/r-hub/cran-metadata/blob/fc798e20c81ab6a347bf2ed19dd1226104e43ec0/.github/workflows/cran-update.yml

Additional Comments

Thanks for the great project, we use it A LOT.

@gaborcsardi gaborcsardi added bug 🐝 This issue describes a bug. triage ⚠️ labels Sep 26, 2024
@JamesIves
Copy link
Owner

JamesIves commented Sep 26, 2024

Ah yeah this seems like a bug where we need to use the wildcard. I'll see about pushing up a patch version for this when I get a spare moment, thanks for reporting this!

@JamesIves
Copy link
Owner

A patch for this has been released as part of v4.6.5, if you continue to see issues please let me know!

@gaborcsardi
Copy link
Author

Thanks! However, no cigar just yet. It is still failing :( :
https://github.com/r-hub/cran-metadata/actions/runs/11073482646/job/30770120172#step:5:1

@JamesIves JamesIves reopened this Sep 27, 2024
@JamesIves
Copy link
Owner

Can you provide the log files? I'm unable to access this

@JamesIves
Copy link
Owner

Pushed up 4.6.6 which reverts this change, let me re-visit this and get you a beta version later today.

@sckott
Copy link

sckott commented Sep 27, 2024

I don't know if this is related but this action just started failing for me without any changes in my repo, e.g.

https://github.com/getwilds/registry/actions/runs/11075200637/job/30776070332#step:6:17

Error: File not found: '/home/runner/work/_actions/JamesIves/github-pages-deploy-action/v4.6.6/lib/main.js'

Same result with @v4 and @v4.6.6
Happy to delete this comment if this is unrelated

@JamesIves
Copy link
Owner

It is unrelated, but that issue should be resolved now.

@JamesIves
Copy link
Owner

Possible fix for the above, please try pointing your workflow to JamesIves/github-pages-deploy-action@releases/v4-dubious-bug. I wasn't able to repro this myself, but this change adds the temp worktree directory to the safe list as directed by the error message itself.

@gaborcsardi
Copy link
Author

@sckott
Copy link

sckott commented Sep 28, 2024

@JamesIves thanks!

@JamesIves
Copy link
Owner

Great! Thanks for testing. I'll push a release up for this in the morning and ping the thread. Enjoy your weekend!

@JamesIves
Copy link
Owner

https://github.com/JamesIves/github-pages-deploy-action/releases/tag/v4.6.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐝 This issue describes a bug.
Projects
None yet
3 participants