Skip to content

Show Environment Variable #6

Show Environment Variable

Show Environment Variable #6

Workflow file for this run

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

Check failure on line 22 in .github/workflows/temp.yaml

View workflow run for this annotation

GitHub Actions / Show Environment Variable

Invalid workflow file

The workflow is not valid. .github/workflows/temp.yaml (Line: 22, Col: 12): Unrecognized named-value: 'jobs'. Located at position 1 within expression: jobs.create-variable.steps.set-env-variable.outputs.envvar
echo "Environment Variable: ${{ jobs.create-variable.steps.set-env-variable.outputs.envvar }}"