Skip to content

Commit a11a9d1

Browse files
committed
Set the Github action to POST every night to CF hook.
1 parent b127902 commit a11a9d1

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/cron.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,13 @@ on:
44
# POSIX syntax: Minute [0,59] Hour [0,23] Day [1,31] Month [1,12] Day of week [0 (Sunday),6]
55
- cron: '0 1 * * *'
66

7-
permissions:
8-
contents: read
9-
107
jobs:
11-
data:
8+
deployment:
129
runs-on: ubuntu-latest
13-
container: node:16
14-
environment: cron
1510

1611
steps:
17-
- name: Check out repository code
18-
uses: actions/checkout@v3
19-
20-
- name: Install dependencies
21-
run: npm install
22-
23-
- name: Run data script
24-
run: npm run data
12+
- name: Deploy Stage
13+
uses: fjogeleit/http-request-action@v1
14+
with:
15+
url: ${{ secrets.CF_CRON_URL }}
16+
method: 'POST'

0 commit comments

Comments
 (0)