GitHub Actions | Show Parameters in Preview #8303
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a GitHub Actions workflow that defines a name: CICDon: push: branches: - master - cicd-*workflow_dispatch: inputs: deployment_git_rev: description: 'SHA or ref (branch, tag, other named thing) to deploy'required: truedefault: ''target_release_channel: description: 'Release channel (`Pre-prod` or `Prod`)'required: truedefault: 'Pre-prod'services: description: 'Space-separated list of services to deploy (e.g. dog cat). ALL to deploy all services'required: truedefault: '' ...When I run it, I can see the workflow name, run number, and that it was manually run by me. All very helpful! I wish I could see the branch it was run on and the parameters passed to the workflow run. Is there a way to do this, or would a change need to be made? |
BetaWas this translation helpful?Give feedback.
Replies: 10 comments 18 replies
-
Hi @brettrowberry - now that you mention it, we don't surface this information very easily. I'll look into how to make this easier for you. This is great feedback, I appreciate it. |
BetaWas this translation helpful?Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Any update on this feature? This is sorely missed and one of the biggest reasons why we're not considering moving deployment workloads from Jenkins to GHA. Sort of related to having better visibility into the inputs provided into a This plugin plays nicely with Jenkins "parameters" where we can view the inputs provided to the run: |
BetaWas this translation helpful?Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
GitHub recently added the 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: cat{0}
|
BetaWas this translation helpful?Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@ethomson@ChristopherHX The @ashwinv11 Pre-filling with previous inputs feels like a separate concern. |
BetaWas this translation helpful?Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Another possible workaround is to log the parameters as an output after you click into a job Here's an example of what it might look like. |
BetaWas this translation helpful?Give feedback.
-
You can use my action which print the inputs to the logs and can add them to the summary: |
BetaWas this translation helpful?Give feedback.
-
You can use this simple re-usable action to directly print the input params to the GHA summary:- steps: - name: Update GHA Summary with Workflow Inputs uses: m-s-abeer/update-gha-summary-with-workflow-inputs@v1Marketplace link:- https://github.com/marketplace/actions/update-gha-summary-with-workflow-dispatch-input-params https://github.com/marketplace/actions/update-gha-summary-with-workflow-dispatch-input-params |
BetaWas this translation helpful?Give feedback.
-
I think this should be re-opened. |
BetaWas this translation helpful?Give feedback.
-
This seems like a pretty glaring omission in the github workflow product design, and encouraging this kind of shoddy workaround and ugly third party addins isn't really acceptable in a product which claims to be professional-grade. I mean, if it were a free open source thing maintained by volunteers I'd kind of sympathize, but you have paying customers and a paid engineering team, and I think it's reasonable to have higher expectations. |
BetaWas this translation helpful?Give feedback.
-
I would also like to see this feature supported natively in GHA. |
BetaWas this translation helpful?Give feedback.






GitHub recently added the
run-nameproperty (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 UIFor example: