pion / .goassets

Asset files automatically deployed to Go package repositories
https://pion.ly/
MIT License
8 stars 10 forks source link

Undefined environment variable GITHUB_WORKSPACE #109

Closed stv0g closed 1 year ago

stv0g commented 1 year ago

I am wondering where the GITHUB_WORKSPACE env variable is set?

See: https://github.com/pion/.goassets/blob/master/ci/.github/generate-authors.sh#L15

ashellunts commented 1 year ago

It is set by GitHub Actions https://docs.github.com/en/actions/learn-github-actions/environment-variables

stv0g commented 1 year ago

Thanks @ashellunts,

I think this breaks when the script is invoked via a local Git hook.

I will create a PR to set the workspace to the Git worktree when used outside a GitHub CI workflow.