Skip to content

Commit

Permalink
remove env[VAR] syntax, avoid to error 'Unrecognized named-value'
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhiroki committed Apr 6, 2024
1 parent a8ed597 commit f32874e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@ jobs:
- name: env
run: echo ${{ env }}
- name: custom environment variable
run: echo env.NEW_ENV = ${{ env.NEW_ENV }} env[NEW_ENV] = ${{ env[NEW_ENV] }} \$NEW_ENV = $NEW_ENV
run: echo env.NEW_ENV = ${{ env.NEW_ENV }} \$NEW_ENV = $NEW_ENV
# Unrecognized ERROR
# - name: custom environment variable
# run: echo env[NEW_ENV] = ${{ env[NEW_ENV] }}
- name: custom environment variable
run: echo env[PATH] = ${{ env[PATH] }}

0 comments on commit f32874e

Please sign in to comment.