Skip to content
Discussion options

You must be logged in to vote

GitHub recently added the run-name property (https://github.blog/changelog/2022-09-26-github-actions-dynamic-names-for-workflow-runs), which allows you to add the inputs and branch name to the run name displayed in the UI

For example:

on: workflow_dispatch: inputs: test: type: choiceoptions: - mychoice - a - bb: type: booleanpush: run-name: ${{github.event_name == 'workflow_dispatch' && format('CI/CD-{0}-branch-{1}', tojson(inputs), github.ref_name) || '' }}jobs: testa: runs-on: ubuntu-lateststeps: - run: ${{tojson(inputs)}}shell: cat{0} - run: ${{tojson(github.event.inputs)}}shell: c…

Replies: 10 comments 18 replies

Comment options

You must be logged in to vote
10 replies
@jpcastberg
Comment options

@matosjoa
Comment options

@kota65535
Comment options

@Wouter-Vugt-Shell
Comment options

@harsha549
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@ahvigil
Comment options

@kota65535
Comment options

@brettrowberry
Comment options

@brettrowberry
Comment options

@ahvigil
Comment options

Answer selected bybrettrowberry
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Alex17Li
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ahvigil
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Actions
Labels
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDProduct FeedbackShare your thoughts and suggestions on GitHub features and improvements
21 participants
@brettrowberry@kdomagal@jumarko@ethomson@ahvigil@ashwinv11@NielsJorck@kota65535@jmosley5@r-i-v-a@harsha549@shayki5@m-s-abeer@jpcastberg@ChristopherHX@piotrcichosz@rburridge@matosjoa@Wouter-Vugt-Shell@Alex17Li@SmithStevenO