Skip to content

Variables environment variable example is misleading #26653

Closed
@kaylareopelle

Description

@kaylareopelle

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/learn-github-actions/variables#defining-environment-variables-for-a-single-workflow

What part(s) of the article would you like to see updated?

I would like the example within Defining environment variables for a single workflow to be updated to use accurate syntax.

Additional information

I received an "Invalid workflow file" error when I tried to use the presented syntax while running ubuntu-22.04, which I believe is ubuntu-latest.

Screenshot 2023-07-12 at 12 30 38 PM

I tried:

$DESTINATION_REPO
"$DESTINATION_REPO"
${{ $DESTINATION_REPO }}

And got the same error each time. Only ${{ env.DESTINATION_REPO }} worked.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions