Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Testbed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
FAIR Data Spaces
Testbed
Commits
d17be765
Unverified
Commit
d17be765
authored
9 months ago
by
Paul Latzelsperger
Committed by
GitHub
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
feat(ci): post to discord on failed builds (#369)
TEST post to discord on scheduled builds
parent
10efb588
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/run-e2e-tests.yml
+29
-3
29 additions, 3 deletions
.github/workflows/run-e2e-tests.yml
with
29 additions
and
3 deletions
.github/workflows/run-e2e-tests.yml
+
29
−
3
View file @
d17be765
...
...
@@ -25,7 +25,7 @@ on:
branches
:
-
main
schedule
:
-
cron
:
"
0
0
*
*
*"
# once a day
(1:30 UTC)
-
cron
:
"
0
5
*
*
*"
# once a day
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch
:
...
...
@@ -34,7 +34,6 @@ concurrency:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
jobs
:
Run-E2E-Tests
:
runs-on
:
ubuntu-latest
...
...
@@ -118,3 +117,30 @@ jobs:
-
name
:
"
Destroy
the
KinD
cluster"
run
:
>-
kind delete cluster -n dcp-demo
Secrets-Presence
:
name
:
"
Check
for
required
credentials"
runs-on
:
ubuntu-latest
outputs
:
HAS_WEBHOOK
:
${{ steps.secrets-presence.outputs.HAS_WEBHOOK }}
steps
:
-
name
:
Check whether secrets exist
id
:
secrets-presence
run
:
|
[ ! -z "${{ secrets.DISCORD_GITHUB_CI_WEBHOOK }}" ] && echo "HAS_WEBHOOK=true" >> $GITHUB_OUTPUT
exit 0
Post-To-Discord
:
needs
:
[
Run-E2E-Tests
,
Secrets-Presence
]
if
:
"
needs.Secrets-Presence.outputs.HAS_WEBHOOK
&&
always()
&&
github.event_name
==
'schedule'"
runs-on
:
ubuntu-latest
steps
:
-
uses
:
sarisia/actions-status-discord@v1
name
:
"
Post
discord
webhook"
with
:
webhook
:
${{ secrets.DISCORD_GITHUB_CI_WEBHOOK }}
# if the publishing is skipped, that means the preceding test run failed
status
:
${{ needs.Run-E2E-Tests.result == 'skipped' && 'Failure' || needs.Run-E2E-Tests.result }}
title
:
"
Nightly
MVD
E2E-Test"
description
:
Nightly E2E test run against the latest artefacts"
username
:
GitHub Actions
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment