ci: only exclude build job in "site" branch

This commit is contained in:
Ming Di Leom 2023-10-02 00:57:04 +00:00
parent 5fb20322ea
commit b23b05f89f
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ build:
- npm run build # Generate site
rules:
# Only trigger through push & "Run pipeline" events in master branch; Skip in renovate job
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
# Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME != "site" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
when: always
artifacts: