-
Notifications
You must be signed in to change notification settings - Fork 141
52 lines (46 loc) · 1.64 KB
/
clean-datasets.yaml
File metadata and controls
52 lines (46 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Clean Datasets
on:
repository_dispatch:
workflow_dispatch:
schedule:
# Run every month on the 1st day at 3 am
- cron: "0 3 1 * *"
concurrency:
group: continuous-benchmark
# This removes the ci-datasets volume from client machine.
# The next run of Continuous Benchmark will create the volume again and download all the datasets.
jobs:
removeDatasetsVolume:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: webfactory/ssh-agent@d4b9b8ff72958532804b70bbe600ad43b36d5f2e # v0.8.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Benches
id: benches
run: |
export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }}
set +e
timeout 10m bash -x tools/run_client_remove_volume.sh
set -e
- name: Send Notification
if: failure()
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
with:
payload: |
{
"text": "Failed to remove the datasets volume (removeDatasetsVolume), run status: ${{ job.status }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK