Merge pull request #12962 from freqtrade/maint/ci-discord-notify

Update discord notify action
This commit is contained in:
Matthias
2026-03-22 09:04:01 +01:00
committed by GitHub
2 changed files with 15 additions and 16 deletions
+12 -12
View File
@@ -163,12 +163,12 @@ jobs:
if ($Error.Length -gt 0) {exit 1} if ($Error.Length -gt 0) {exit 1}
- name: Discord notification - name: Discord notification
uses: rjstone/discord-webhook-notify@c2597273488aeda841dd1e891321952b51f7996f #v2.2.1 uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
if: ${{ failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) }} if: ${{ failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) }}
with: with:
severity: error color: '#FF0000' # red
details: Freqtrade CI failed on ${{ matrix.os }} with Python ${{ matrix.python-version }}! title: Freqtrade CI failed on ${{ matrix.os }} with Python ${{ matrix.python-version }}!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} # zizmor: ignore[secrets-outside-env] Intentionally not using environment variable. webhook: ${{ secrets.DISCORD_WEBHOOK }} # zizmor: ignore[secrets-outside-env] Intentionally not using environment variable.
mypy-version-check: mypy-version-check:
name: "Mypy Version Check" name: "Mypy Version Check"
@@ -231,12 +231,12 @@ jobs:
mkdocs build mkdocs build
- name: Discord notification - name: Discord notification
uses: rjstone/discord-webhook-notify@c2597273488aeda841dd1e891321952b51f7996f #v2.2.1 uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
with: with:
severity: error color: '#FF0000' # red
details: Freqtrade doc test failed! title: Freqtrade doc test failed!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} # zizmor: ignore[secrets-outside-env] Intentionally not using environment variable. webhook: ${{ secrets.DISCORD_WEBHOOK }} # zizmor: ignore[secrets-outside-env] Intentionally not using environment variable.
build-linux-online: build-linux-online:
@@ -301,12 +301,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Discord notification - name: Discord notification
uses: rjstone/discord-webhook-notify@c2597273488aeda841dd1e891321952b51f7996f #v2.2.1 uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
if: steps.check.outputs.permitted == 'true' && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) if: steps.check.outputs.permitted == 'true' && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
with: with:
severity: info color: '#00FF00' # green
details: Test Completed! title: Test Completed!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} # zizmor: ignore[secrets-outside-env] Intentionally not using environment variable. webhook: ${{ secrets.DISCORD_WEBHOOK }} # zizmor: ignore[secrets-outside-env] Intentionally not using environment variable.
build: build:
if: always() if: always()
+3 -4
View File
@@ -310,9 +310,8 @@ jobs:
docker image prune -a --force --filter "until=24h" docker image prune -a --force --filter "until=24h"
- name: Discord notification - name: Discord notification
uses: rjstone/discord-webhook-notify@c2597273488aeda841dd1e891321952b51f7996f #v2.2.1 uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) && (github.event_name != 'schedule') if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) && (github.event_name != 'schedule')
with: with:
severity: info title: Deploy Succeeded!
details: Deploy Succeeded! webhook: ${{ secrets.DISCORD_WEBHOOK }}
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}