Skip to content
Snippets Groups Projects
Commit 3048458d authored by Philipp Stadler's avatar Philipp Stadler
Browse files

chore: disable whatsapp notifications

parent f407d04c
Branches
Tags
1 merge request!19chore: disable whatsapp notifications
Pipeline #9654 passed
image: durcheinander/sinologie-anki-pack-build:latest
stages:
- housekeeping
- lint
- build
- prepare-release
......@@ -45,8 +44,8 @@ build-release:
release-package-json-version-as-git-tag:
stage: release
rules:
- if: $CI_PIPELINE_SOURCE != "schedule"
- if: $CI_COMMIT_BRANCH == "refs/head/main"
# tagging should only happen after the thing was merged
- if: $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == "main"
script:
- NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4)
# || exit_code=$? is the recommended way to ignore a non-zero exit code
......@@ -109,24 +108,3 @@ create-gitlab-release:
- name: "$RELEASE_ZIP"
url: '$RELEASE_ZIP_DOWNLOAD_URL'
\ No newline at end of file
# we don't want to get logged out, so I send messages to myself once a day
whatsapp-ping:
stage: housekeeping
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
script:
- mudslide --cache .build-cache login || exit_code=$?
- mudslide --cache .build-cache send me "Good News! You are still logged in at Uni Wien CI."
notify:
stage: notify
rules:
- if: $CI_COMMIT_TAG
needs:
- job: prepare-gitlab-release
artifacts: true
script:
# the command fails even if it succeeds sometimes
- mudslide --cache .build-cache login || exit_code=$?
- 'mudslide --cache .build-cache send $WHATSAPP_RELEASE_NOTIFY_RECIPIENT "Sinologie Anki Pack $NPM_VERSION ist released! 🎉\nDownload: $RELEASE_ZIP_DOWNLOAD_URL\nDetails zum Release: https://gitlab.phaidra.org/kartenaale/sinologie-anki-pack/-/releases\nViel Spaß beim lernen!"'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment