Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Actions: name a workflow run triggered manually

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)

example of multiple workflow runs

Is it possible to name a run that has been triggered manually?

like image 864
Manu Avatar asked Jan 23 '26 15:01

Manu


1 Answers

Update

Support for this feature was added to GitHub Actions on Sep 26, 2022

Original answer

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.

like image 187
wilkystyle Avatar answered Jan 26 '26 10:01

wilkystyle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!