This commit is contained in:
@@ -24,4 +24,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Monitor build and notify Discord
|
- name: Monitor build and notify Discord
|
||||||
if: always()
|
if: always()
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||||
|
API_KEY: ${{ secrets.API_KEY }}
|
||||||
run: /snap/bin/pwsh -NoProfile -File ./gitea-build-monitor.ps1
|
run: /snap/bin/pwsh -NoProfile -File ./gitea-build-monitor.ps1
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ $ErrorActionPreference = 'Stop'
|
|||||||
# =========================
|
# =========================
|
||||||
$Config = @{
|
$Config = @{
|
||||||
GiteaBaseUrl = 'http://127.0.0.1:3000'
|
GiteaBaseUrl = 'http://127.0.0.1:3000'
|
||||||
ApiToken = '328ae2196703fc988e9c21962341ba88709511ad'
|
ApiToken = $env:API_KEY
|
||||||
DiscordWebhookUrl = 'https://discord.com/api/webhooks/1501605890581856430/j3zeMhCW-V583awzqhyrZMfVwzZl-RRCLdIa32jUiymbodzpu9WZaX_p3HiiQMtUUO0m'
|
DiscordWebhookUrl = $env:DISCORD_WEBHOOK_URL
|
||||||
|
|
||||||
# Supports multiple repositories.
|
# Supports multiple repositories.
|
||||||
Repositories = @(
|
Repositories = @(
|
||||||
|
|||||||
Reference in New Issue
Block a user