1
0
mirror of synced 2025-12-29 18:00:57 -05:00
Files
docs/data/reusables/actions/workflow-dispatch-inputs-example.md

803 B

on:
  workflow_dispatch:
    inputs:
      logLevel:
        description: 'Log level'
        required: true
        default: 'warning'
        type: choice
        options:
          - info
          - warning
          - debug
      print_tags:
        description: 'True to print to STDOUT'
        required: true
        type: boolean
      tags:
        description: 'Test scenario tags'
        required: true
        type: string
      environment:
        description: 'Environment to run tests against'
        type: environment
        required: true

jobs:
  print-tag:
    runs-on: ubuntu-latest
    if:{% raw %} ${{ inputs.print_tags }} {% endraw %}
    steps:
      - name: Print the input tag to STDOUT
        run: echo {% raw %} The tags are ${{ inputs.tags }} {% endraw %}