-
Notifications
You must be signed in to change notification settings - Fork 92
51 lines (40 loc) · 1.2 KB
/
probe.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Simple workflow for deploying static content to GitHub Pages
name: Probe
on:
# Runs on pushes targeting the default branch
push:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
repository_dispatch:
types: [ probe-hn-sites ]
schedule:
- cron: "*/30 * * * *"
# Allow one concurrent deployment
concurrency:
group: probe-event-${{ github.event_name }} # So UT won't be interrupted by cronjobs
cancel-in-progress: true # Avoid batch pending when one job hangs
jobs:
# Single deploy job since we're just deploying
probe:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.9
cache: 'pip'
- name: Install Python Dependencies
run: pip install --upgrade -r requirements.txt
- name: Blog
run: python probe.py blog
if: ${{ always() }}
- name: HN Summary
run: python probe.py hn
if: ${{ always() }}
- name: HN Summary ZH
run: python probe.py hn-zh
if: ${{ always() }}