docs icon indicating copy to clipboard operation
docs copied to clipboard

`GITHUB_ACTION`: `__self` isn't documented

Open jsoref opened this issue 1 year ago • 1 comments

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables

What part(s) of the article would you like to see updated?

The name of the action currently running, or the id of a step. For example, for an action, __repo-owner_name-of-action-repo. GitHub removes special characters, and uses the name __run when the current step runs a script without an id.

Additional information

https://github.com/check-spelling-sandbox/sub-actions-0/actions/runs/7790252174/job/21243707001

GITHUB_ACTION: __self

jsoref avatar Feb 05 '24 20:02 jsoref

@jsoref Thanks for opening this issue! I'll get this triaged for review ✨

nguyenalex836 avatar Feb 05 '24 23:02 nguyenalex836

Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:

github-actions[bot] avatar Mar 05 '24 22:03 github-actions[bot]

Personally I'm not too worried about this. I'm wondering whether this will complicate the docs. I would advise against depending on generated default IDs. If customers want stable/predictable IDs then I would suggest explicitly setting IDs. Unless there is some existing patterns or use cases I'm overlooking. Thoughts?

ericsciple avatar Mar 21 '24 22:03 ericsciple

@ericsciple Thank you weighing in here! It sounds like we would prefer not to document this 💛 I'll go ahead and close out this issue.

nguyenalex836 avatar Mar 21 '24 23:03 nguyenalex836