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

Document the fact that multiple versions of GH exists and the impact on the action #55

Open
rlespinasse opened this issue Oct 31, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@rlespinasse
Copy link
Member

For public actions, we need to keep in mind that GitHub exists in multiple versions like the GHES (GitHub Entreprise Server).

For example, currently, $GITHUB_OUTPUT is not valid on GHES, so a public action needs to manage that. @actions/toolkit supports it by design.

if [ -f "$GITHUB_OUTPUT" ]; then
  echo "key=${value}" >>"$GITHUB_OUTPUT"
else
  echo "::set-output name=key::${value}"
fi
@rlespinasse rlespinasse added the documentation Improvements or additions to documentation label Oct 31, 2022
@rlespinasse rlespinasse added this to the Improve content milestone Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant