Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 13: Expression forced to be surrounded by spaces #45

Open
muzimuzhi opened this issue Apr 11, 2023 · 0 comments
Open

Lesson 13: Expression forced to be surrounded by spaces #45

muzimuzhi opened this issue Apr 11, 2023 · 0 comments

Comments

@muzimuzhi
Copy link
Contributor

muzimuzhi commented Apr 11, 2023

In lesson 13, only runs-on: ${{ matrix.os }} passes the checks. Either runs-on: ${{matrix.os }} or runs-on: ${{ matrix.os}} fails.

But in lesson 11, there's no such restriction. if: ${{github.ref == 'refs/heads/master'}} passes the checks.

I understand surrounding expression by one space on each side is a good style to follow, but no spaces surrounded is valid expression syntax too (well it's not explicitly documented, but currently things like ${{matrix.os}} works for real workflow runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant