-
Notifications
You must be signed in to change notification settings - Fork 60k
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
Misleading examples for github.ref
#35215
Comments
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
Clarification:" |
Thank you for raising this issue! I'll get this triaged for review ✨ Our team will provide feedback regarding the best next steps for this issue - thanks for your patience! 💛 |
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert 👀 |
Hey @dimaqq! Thanks for finding this. We agree that the docs should be updated. What do you think of updating the ref description reusable with something like this?
This reusable is in the table here and in "Store information in variables" |
Sounds good :) |
@dimaqq Awesome to hear! Would you be willing to submit a PR for this update? Otherwise, we'll open this issue up to the community 💛 |
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#github-context
What part(s) of the article would you like to see updated?
The ref given is fully-formed, meaning that for branches the format is
refs/heads/<branch_name>
, for pull requests it isrefs/pull/<pr_number>/merge
, and for tags it isrefs/tags/<tag_name>
. For example,refs/heads/feature-branch-1
.Additional information
Surely
github.ref
is notrefs/pull/<pr_number>/merge
for an outstanding pull request.My colleague tripped over reading this bit in canonical/operator#1451
The text was updated successfully, but these errors were encountered: