Skip to content

Commit

Permalink
try env print
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Dec 27, 2023
1 parent c7df7b0 commit 7e903e6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/temp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ jobs:
create-variable:
runs-on: ubuntu-latest

outputs:
envvar: ${{ steps.set-env-variable.outputs.envvar }}

steps:
- name: Set Environment Variable
id: set-env-variable
run: echo "envvar=Hello" >> $GITHUB_ENV
run: echo "envvar=Hello" >> $GITHUB_OUTPUT

show-variable:
needs: create-variable
Expand All @@ -23,4 +20,4 @@ jobs:
steps:
- name: Display Environment Variable
run: |
echo "Environment Variable: ${{ needs.create-variable.outputs.envvar }}"
echo "Environment Variable: ${{ jobs.create-variable.steps.set-env-variable.outputs.envvar }}"

0 comments on commit 7e903e6

Please sign in to comment.