summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Richter <bryan@haskell.foundation>2023-05-09 09:46:36 +0300
committerBryan Richter <bryan@haskell.foundation>2023-05-09 12:03:35 +0300
commit0e2df4c9ac59a10080bd6e029e83a355ecd01c8b (patch)
tree90d1907b89a1005244e2cebfa3f3fe95510e1538
parent78c8dc509eacef5a5f09601b6bd004e13ae3a4c3 (diff)
downloadhaskell-0e2df4c9ac59a10080bd6e029e83a355ecd01c8b.tar.gz
Fix up rules for ghcup-metadata-nightly-push
-rw-r--r--.gitlab-ci.yml7
1 files changed, 2 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b655e0a0d..2a8cab71cd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1048,7 +1048,7 @@ ghcup-metadata-nightly:
rules:
- if: $NIGHTLY
-# Update the
+# Update the ghcup metadata with information about this nightly pipeline
ghcup-metadata-nightly-push:
stage: deploy
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-fedora33:$DOCKER_REV"
@@ -1072,11 +1072,8 @@ ghcup-metadata-nightly-push:
- git commit -m "Update metadata"
- git push gitlab_origin HEAD:updates -o ci.skip
rules:
- - if: $NIGHTLY
# Only run the update on scheduled nightly pipelines, ie once a day
- - if: $CI_PIPELINE_SOURCE == "schedule"
- # And only update the metadata for master branch
- - if: '$CI_COMMIT_BRANCH == "master"'
+ - if: $NIGHTLY && $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"
ghcup-metadata-release: