cschleiden / github-actions-hero

🚧 Interactive tutorial and visualizer for GitHub Actions workflows 🚧
https://github-actions-hero.now.sh
MIT License
106 stars 19 forks source link

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

Open muzimuzhi opened 1 year ago

muzimuzhi commented 1 year ago

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.