Skip to content

Show Environment Variable #4

Show Environment Variable

Show Environment Variable #4

Workflow file for this run

name: Show Environment Variable
on:
workflow_dispatch:
workflow_call:
jobs:
create-variable:
runs-on: ubuntu-latest
outputs:
env-variable: ${{ steps.set-env-variable.outputs.env-variable }}
steps:
- name: Set Environment Variable
id: set-env-variable
run: echo "env-variable=Hello" >> $GITHUB_ENV
show-variable:
needs: create-variable
runs-on: ubuntu-latest
steps:
- name: Display Environment Variable
run: |
echo "Environment Variable: ${{ needs.create-variable.outputs.env-variable }}"