Files
actions-playground/.gitea/workflows/input-test.yml
chase e76481d48a
All checks were successful
Action Input Test / test-input (push) Successful in 5s
Update .gitea/workflows/input-test.yml
2026-01-23 12:26:41 -05:00

31 lines
751 B
YAML

name: Action Input Test
on:
push:
branches: [ main ]
workflow_dispatch:
inputs:
mytext:
description: 'Input your text'
required: true
default: 'placeholder'
type: string
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: Never actually do this lmao
env:
SUPER_SECRET: ${{ secrets.foo }}
run: echo "$SUPER_SECRET"
- name: REALLY don't do this lmao
env:
SUPER_SECRET: ${{ secrets.foo }}
run: |
echo "$SUPER_SECRET" >> foo.txt
cat foo.txt