Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglonghong committed Aug 4, 2024
1 parent 14d2721 commit 343bfe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
uses: actions/checkout@v3

- name: Get Environment Variable
run: echo "The value of MY_ENV_VAR is ${{ needs.set_env_var.output.my_env_var }}"
run: echo "The value of MY_ENV_VAR is ${{ needs.set_env_var.outputs.my_env_var }}"

- name: Use Environment Variable in Another Step
run: |
if [[ "${{ needs.set_env_var.output.my_env_var }}" == "HelloWorld" ]]; then
if [[ "${{ needs.set_env_var.outputs.my_env_var }}" == "HelloWorld" ]]; then
echo "The environment variable is correctly set!"
else
echo "The environment variable is not set correctly."
Expand Down

0 comments on commit 343bfe5

Please sign in to comment.