Skip to content

test environment variable #1

test environment variable

test environment variable #1

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.NEW_ENV }} env[NEW] = ${{ 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]