Using GitHub Actions we have a workflow (deploy.yaml) that can be triggered both manually and as a result of a push event:
on:
push:
branches: ["master"]
workflow_dispatch:
inputs:
env:
description: 'env'
required: true
type: choice
options: ...
When this workflow is executed due to push event, the run is named as the HEAD commit... but if the workflow is executed manually, the run uses the name of the yaml file (deploy in this scenario)

Is it possible to name a run that has been triggered manually?
Support for this feature was added to GitHub Actions on Sep 26, 2022
As of Sep 3, 2022, it appears that this is not possible. There is an unanswered feature request discussion on the GitHub Actions community forum, but no apparent decision has yet been made.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With