All checks were successful
Action Secrets Test / test-secret (push) Successful in 5s
30 lines
695 B
YAML
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 }}"
|