Skip to content

Commit

Permalink
Update workflow rules fro gitlab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Mar 8, 2022
1 parent a2dec34 commit a394004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Expand Up @@ -18,14 +18,14 @@ variables:

workflow:
rules:
# Restrict the number of times the pipeline runs to save resources/limits
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
variables:
CI_BRANCH: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
CI_PULL_REQUEST: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == 'push'
when: never
- if: $CI_PIPELINE_SOURCE == 'web' || $CI_PIPELINE_SOURCE == 'schedule'
- if: $CI_COMMIT_BRANCH
when: never # Avoid running the pipeline twice (push + merge request)
- if: $CI_COMMIT_BRANCH || $CI_COMMIT_TAG

cache:
key: pip-pipx-pre-commit-$CI_JOB_IMAGE
Expand Down

0 comments on commit a394004

Please sign in to comment.