-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.03 KB
/
glif-points.yml
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
on:
schedule:
- cron: "0 12 * * *" # Once per day
push:
jobs:
archive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
curl --fail https://stats.filspark.com/participants/top-measurements?from=yesterday&to=yesterday > top-measurements.json
- uses: softprops/action-gh-release@v2
with:
files: top-measurements.json
- if: failure()
uses: slackapi/[email protected]
with:
channel-id: alerts
payload: |
{
"text": "Top measurements archival failed",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Top measurements archival failed>*"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}