Skip to content

Test workflow

Test workflow #2

Workflow file for this run

name: Test workflow
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to run the workflow in'
required: true
type: environment
reason:
description: 'Reason for running the workflow'
required: true
type: string
environment-optional:
description: 'Environment to run the workflow in'
required: false
type: environment
choices-input-optional:
type: choice
required: false
options:
- option 1
- option 2
description: "Choice input"
number-input-optional:
type: number
required: false
description: "Number input"
jobs:
ruff:
runs-on: ubuntu-latest
name: "ruff on code"
permissions:
contents: read
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: print all inputs
run: |
echo "environment: ${{ github.event.inputs.environment }}"
echo "reason: ${{ github.event.inputs.reason }}"
echo "environment-optional: ${{ github.event.inputs.environment-optional }}"
echo "choices-input-optional: ${{ github.event.inputs.choices-input-optional }}"
echo "number-input-optional: ${{ github.event.inputs.number-input-optional }}"