ci: Update build number on dev builds with Discord notification (#381)

This commit is contained in:
Jason Wen 2024-08-02 07:38:25 -08:00 committed by GitHub
parent 4cb7263dd6
commit 61f7690265
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -230,6 +230,9 @@ notify new dev build:
needs: ["publish to public github prebuilt"] # This notify shall only happen after a publish to github public needs: ["publish to public github prebuilt"] # This notify shall only happen after a publish to github public
variables: variables:
TEMPLATE: "discord_template_notify_dev_public.json" TEMPLATE: "discord_template_notify_dev_public.json"
before_script:
- !reference [".notify_discord", "before_script"]
- export EXTRA_VERSION_IDENTIFIER=$((CI_PIPELINE_IID + BASE_BUILD_NUMER))
rules: rules:
- if: $NEW_BRANCH == "dev-c3" - if: $NEW_BRANCH == "dev-c3"
variables: variables:

View File

@ -2,7 +2,7 @@
"embeds": [ "embeds": [
{ {
"title": "🎉 sunnypilot `${NEW_BRANCH}` New Update 🎉", "title": "🎉 sunnypilot `${NEW_BRANCH}` New Update 🎉",
"description": "[sunnypilot](${PUBLIC_REPO_URL}): Build #${CI_PIPELINE_IID} of branch [${NEW_BRANCH}](${PUBLIC_REPO_URL}/tree/${NEW_BRANCH}) has been published.\n\nDrive safe! 🚗💨", "description": "[sunnypilot](${PUBLIC_REPO_URL}): Build #${EXTRA_VERSION_IDENTIFIER} of branch [${NEW_BRANCH}](${PUBLIC_REPO_URL}/tree/${NEW_BRANCH}) has been published.\n\nDrive safe! 🚗💨",
"color": 4321431 "color": 4321431
} }
] ]