Skip to content

Conversation

@yujincat
Copy link
Contributor

@yujincat yujincat commented Jan 17, 2023

To provide more information in the run log, add

  • the reference used when calling reusable workflows

image

  • the job name for both non-reusable/reusable workflow jobs

image

Actions service side PR: https://github.com/github/actions-dotnet/pull/14151

Related to https://github.com/github/actions-enablers-policy/issues/704

@yujincat yujincat requested a review from a team as a code owner January 17, 2023 09:21
context.Output($"Uses: {workflowFileFullPath.Value}");
var usesOutput = $"Uses: {workflowFileFullPath.Value}";
if (message.Variables.TryGetValue("system.workflowFileRef", out VariableValue workflowFileRef)
&& message.Variables.TryGetValue("system.workflowFileSha", out VariableValue workflowFileSha))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
&& message.Variables.TryGetValue("system.workflowFileSha", out VariableValue workflowFileSha))
|| message.Variables.TryGetValue("system.workflowFileSha", out VariableValue workflowFileSha))

should it be OR?

Copy link
Contributor Author

@yujincat yujincat Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yea you are right :-)
Just to note, we are sending both values but in case the user is using reusable workflow using sha then workflowFileRef will be empty. Still that will return true for this TryGetValue, so it should not matter much.

TingluoHuang
TingluoHuang previously approved these changes Jan 18, 2023
@TingluoHuang TingluoHuang merged commit a710100 into actions:main Jan 18, 2023
nikola-jokic pushed a commit to nikola-jokic/runner that referenced this pull request May 12, 2023
* fix typo

* add workflow ref in the log

* show job name for all jobs

* update ref

* reflect the feedback

* fix a small bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants