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

33 lines
798 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: |
import os
for q in (os.getenv("SUPER_SECRET")):
print(q)
shell: python