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

"Error: env ACTIONS_RUNTIME_URL is only available from the context of an action" occurred on GHES #217

Closed
nowsprinting opened this issue Dec 2, 2022 · 3 comments

Comments

@nowsprinting
Copy link

We using octocov on GHES and self hosted runner (macOS).

This error occurs is in the report upload.

Storing report...
Error: env ACTIONS_RUNTIME_URL is only available from the context of an action
Error: Process completed with exit code 1.

Can we give or substitute the ACTIONS_RUNTIME_URL in our environment?

workflow:

run: |
  gh release download --repo github.com/k1LoW/octocov --pattern "*darwin_amd64.zip"
  unzip -d octocov octocov*.zip
  ./octocov/octocov

Environment variable being set:

  • GITHUB_API_URL
  • GITHUB_TOKEN

.octocov:

report:
  if: is_default_branch
  datastores:
    - artifact://${GITHUB_REPOSITORY}
@k1LoW
Copy link
Owner

k1LoW commented Dec 2, 2022

Can we give or substitute the ACTIONS_RUNTIME_URL in our environment?

ACTIONS_RUNTIME_URL is an environment variable that is required when uploading files to the GitHub Actions Artifact.

ref: https://github.com/search?q=repo%3Aactions%2Ftoolkit%20ACTIONS_RUNTIME_URL&type=code

For example, if the following Actions are not available, your environment may not support the GitHub Actions Artifact.

https://github.com/actions/upload-artifact

@k1LoW
Copy link
Owner

k1LoW commented Dec 2, 2022

only available from the context of an action

I made a mistake 💦 . ACTIONS_RUNTIME_URL seems to be an environment variable that is only available when running as an action ( error message said... ).

Try https://github.com/k1LoW/octocov-action.

@nowsprinting
Copy link
Author

Thanks!

Try https://github.com/k1LoW/octocov-action.

Container actions is not run our masOS runner.
I try another workaround. Thank you!

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