You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Break up steps as much as you can, practically. This makes it easier for users to see what has happened.
echo enough to make sure a user can see what has gone wrong. Be a bit more verbose than you might assume, because users won't have as much context as you do when writing it.
Use bash as your shell unless forced not to by some important external requirement.
default: ... shell: bash is generally available and should be used whenever possible
job-level env is useful for turning off dotnet tracking & logo:
End bash scripts with at least exit but ideally main "$@" ; exit. This makes it easy to see the end of the script within the Action (amoung other benefits).
lowerCamelCase variables in bash but lower_snake_case in $GITHUB_OUTPUT.
Try not to use "true" & "false" as string values (it is confusing when compared to input booleans) rather use more meaningful variables and values. E.g.
❌ continue=true
✅ result=success
About
PUBLIC GitHub Actions Workflows used in StirlingLabs