0

Is it possible to set a custom build label/number/display name for a GitHub action?

With Azure DevOps Pipelines you can do this by echo'ing

##vso[build.updatebuildnumber]$value

I'm looking for analogous functionality in GitHub Actions

Jeff
  • 35,755
  • 15
  • 108
  • 220

1 Answers1

0

The name value is based on the file name and name: tag in the YML file under .github/workflows.

0xLogN
  • 3,289
  • 1
  • 14
  • 35
  • yes, but can I set the name to something dynamic from within the workflow? – Jeff Jan 03 '22 at 18:10
  • The workflow name is static, but jobs and steps can be set dynamically using the matrix environment; see https://github.community/t/dynamic-job-names/139379/3 – 0xLogN Jan 03 '22 at 18:22
  • I'm looking for a way to take the version number which is generated via GitVersion and display it in the build label that is shown under the GH Actions tab...is there any way to do anything like that or to annotate the GH Action run in some way so that a build for a specific GitVersion number is findable? – Jeff Jan 03 '22 at 18:46