CI: Alternatively run pages if ref matches default branch

This commit is contained in:
Jonas Tobias Hopusch 2021-07-13 23:58:40 +02:00
parent 844f9c846f
commit e8ad11287d
Failed to generate hash of commit

View file

@ -5,7 +5,7 @@ pages:
image: archlinux:latest image: archlinux:latest
interruptible: true interruptible: true
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
before_script: before_script:
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola - pacman --needed --noconfirm --sync --refresh --sysupgrade zola
script: script: