Files
actions-playground/.gitea/workflows/input-test.yml
chase d4c0443fab
All checks were successful
Action Secrets Test / test-secret (push) Successful in 5s
Split input test and secrets test into separate workflows
2026-01-25 13:02:58 -05:00

30 lines
695 B
YAML

name: Action Input Test
on:
workflow_dispatch:
inputs:
mytext:
description: 'Input your text'
required: true
default: 'placeholder'
type: string
mydrink:
description: 'Choose your drink'
required: true
default: 'tea'
type: choice
options:
- coffee
- tea
jobs:
test-input:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Print input to stdout
run: echo "The input was ${{ gitea.event.inputs.mytext }}"
- name: Print choice to stdout
run: echo "The choice was ${{ gitea.event.inputs.mydrink }}"