-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.39 KB
/
main.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
52
53
54
55
# weekly batch-job.yml
name : Weekly Batch Job
on:
schedule:
- cron : '0 0 * * 0'
jobs:
fetch-APT:
runs-on: ubuntu-latest
steps:
- name: Fetch URL
uses: boyeborg/fetch-url-action@v1.1
with:
url: https://myhome-apply.vercel.app/api/refresh?category=APT
run: echo "run the apt"
- name: backup logging
if: ${{ failure() }}
run: echo backup APT
sleep:
runs-on: ubuntu-latest
steps:
- name: Sleep for 10 seconds
uses: jakejarvis/wait-action@master
with:
time: '10s'
fetch-NonApt:
runs-on: ubuntu-latest
steps:
- name: Fetch URL
uses: boyeborg/fetch-url-action@v1.1
with:
url: https://myhome-apply.vercel.app/api/refresh?category=NonApt
run: echo "run the NonApt"
- name: backup logging
if: ${{ failure() }}
run: echo backup NonApt
sleep-step:
runs-on: ubuntu-latest
steps:
- name: Sleep for 10 seconds
uses: jakejarvis/wait-action@master
with:
time: '10s'
fetch-Remain:
runs-on: ubuntu-latest
steps:
- name: Fetch URL
uses: boyeborg/fetch-url-action@v1.1
with:
url: https://myhome-apply.vercel.app/api/refresh?category=Remain
run: echo "run the Remain"
- name: backup logging
if: ${{ failure() }}
run: echo backup Remain