From adbaeb64ce7d949a4190476c6c3e564cca113f37 Mon Sep 17 00:00:00 2001 From: rhysd Date: Wed, 4 Aug 2021 15:26:15 +0900 Subject: [PATCH] check it is ok to use any operator outside `${{ }}` --- testdata/ok/operator_outside_expr.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testdata/ok/operator_outside_expr.yaml diff --git a/testdata/ok/operator_outside_expr.yaml b/testdata/ok/operator_outside_expr.yaml new file mode 100644 index 000000000..e17bc767c --- /dev/null +++ b/testdata/ok/operator_outside_expr.yaml @@ -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 == '')