Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit073 committed Mar 16, 2024
1 parent 2086834 commit ccc63ea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Read Env Var and Print

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 }} }}"

0 comments on commit ccc63ea

Please sign in to comment.