Skip to content

Document that we can use bypassing variables

Lin Jen-Shin requested to merge docs-bypassing-variables into master

Bypassing variables was added in !367 (merged) and now let's document it.

I think it could be nice that if we can set BYPASSING_TRIAGE_DISCOVER=0 to skip a policy while triggering a scheduled dry-run, I am not sure it could ever work with the current CI configurations though.

discover:
  extends: .run
  stage: hygiene
  only:
    variables:
      - $TRIAGE_DISCOVER
  variables:
    TRIAGE_POLICY_FILE: policies/stages/hygiene/discover.yml

Maybe we need to change above to:

only:
  variables:
    - $TRIAGE_DISCOVER == "1"

Or:

only:
  variables:
    - $TRIAGE_DISCOVER != "0"

to make this work. We don't really need it yet, so I guess it's fine it is right now.

Edited by 🤖 GitLab Bot 🤖

Merge request reports