Skip to content

fixup! test environment variable #2

fixup! test environment variable

fixup! test environment variable #2

Workflow file for this run

on: push
name: environemnt variables
env:
NEW_ENV: value
jobs:
build:
name: test
runs-on: ubuntu-latest
steps:
- 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

Check failure on line 15 in .github/workflows/environment.yml

View workflow run for this annotation

GitHub Actions / environemnt variables

Invalid workflow file

The workflow is not valid. .github/workflows/environment.yml (Line: 15, Col: 14): Unrecognized named-value: 'NEW_ENV'. Located at position 5 within expression: env[NEW_ENV]