GitHub Actions: name a workflow run triggered manually

Viewed 100

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?

1 Answers
Related