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

Action fails when running for PR from a fork #54

Open
Luthaf opened this issue Jan 20, 2025 · 2 comments
Open

Action fails when running for PR from a fork #54

Luthaf opened this issue Jan 20, 2025 · 2 comments

Comments

@Luthaf
Copy link

Luthaf commented Jan 20, 2025

See for example metatensor/metatensor#820

Running with GHA debug logging gives me:

##[debug]Evaluating condition for step: 'Comment with download link'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Comment with download link
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: github.repository
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'repository'
##[debug]=> 'metatensor/metatensor'
##[debug]Result: 'metatensor/metatensor'
##[debug]Evaluating: github.run_id
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'run_id'
##[debug]=> '12866182743'
##[debug]Result: '12866182743'
##[debug]Loading env

[PR TEXT …]

##[debug]
##[debug]<!-- download-section Documentation docs start -->
##[debug][📚 Download documentation for this pull-request](https://nightly.link/metatensor/metatensor/actions/artifacts/2455811253.zip)
##[debug]
##[debug]<!-- download-section Documentation docs end -->
Error: Resource not accessible by integration
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Comment with download link
@Luthaf
Copy link
Author

Luthaf commented Jan 20, 2025

Maybe relevant as a way to skip running this from a fork: peaceiris/actions-gh-pages#153 (comment)

@PicoCentauri
Copy link
Owner

Good catch. I will take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants