Skip to content

Commit

Permalink
check it is ok to use any operator outside ${{ }}
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Aug 4, 2021
1 parent fdb4f39 commit adbaeb6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testdata/ok/operator_outside_expr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: push
jobs:
test:
strategy:
matrix:
ver: [0, 1]
runs-on: ubuntu-latest
steps:
- run: echo 'my repo'
# This was not ok until https://github.com/github/docs/pull/8786
if: contains(github.repository, 'rhysd')
- run: echo 'my repo'
# This was not ok until https://github.com/github/docs/pull/8786
if: github.repository != 'rhysd/foo' && matrix.ver > 0 || !(github.token == '')

0 comments on commit adbaeb6

Please sign in to comment.