Skip to content

Workflow file for this run

name: Read Env Var and Print

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

`dispatch` is not a valid event name
on:
dispatch:
inputs:
env_variable:
description: 'Environment variable name'
required: true
jobs:
print_env_var:
runs-on: ubuntu-latest
steps:
- name: Print Environment Variable
run: |
echo "Environment Variable Value: ${{ env.${{ github.event.inputs.env_variable }} }}"