Skip to content

Add options

Add options #2

name: Dynamic Run name
run-name: ${{ github.event_name == 'workflow_dispatch' ? inputs.environment : 'auto' }}

Check failure on line 2 in .github/workflows/dynamic-run-name.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dynamic-run-name.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
on:
push:
workflow_dispatch:
inputs:
environment:
description: Environment
type: choice
required: true
default: dev
options:
- dev
- stg
- prod
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "Hello world"