Skip to content

Commit

Permalink
CI: fix precedence in rules
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerum committed Nov 27, 2023
1 parent 8983eba commit fb0875e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ test_tvm:
interruptible: true
allow_failure: false
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF == "main"
- if: ($CI_PIPELINE_SOURCE == "push") && ($CI_COMMIT_REF == "main")
cache:
paths:
- .cache/
Expand Down Expand Up @@ -131,7 +131,7 @@ test_python_310:
paths:
- .cache/
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF == "main"
- if: ($CI_PIPELINE_SOURCE == "push") && ($CI_COMMIT_REF == "main")



Expand All @@ -155,7 +155,7 @@ build_docs:
tags:
- docker
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF == "main"
- if: ($CI_PIPELINE_SOURCE == "push") && ($CI_COMMIT_REF == "main")
# Empty dependencies to disable artifacts passing
dependencies: []

Expand Down

0 comments on commit fb0875e

Please sign in to comment.