Add Drone Discord changelog pipeline and test notification
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: discord-changelog
|
||||
|
||||
clone:
|
||||
depth: 0
|
||||
|
||||
steps:
|
||||
- name: test-changelog
|
||||
image: python:3.13-alpine
|
||||
commands:
|
||||
- apk add --no-cache git
|
||||
- python -m unittest discover -s tests -p test_discord_changelog_ci.py
|
||||
|
||||
- name: notify-discord
|
||||
image: python:3.13-alpine
|
||||
environment:
|
||||
DISCORD_WEBHOOK_URL:
|
||||
from_secret: discord_webhook_url
|
||||
commands:
|
||||
- apk add --no-cache git
|
||||
- python tools/discord_changelog_ci.py
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
Reference in New Issue
Block a user