-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.25 KB
/
update-restaurants.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
name: Update Restaurants - Scheduled
on:
push:
branches:
- "main"
schedule:
- cron: '20 0 * * 1-5'
jobs:
update_restrauants:
runs-on: ubuntu-latest
name: Update restrauants
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: denoland/setup-deno@v1
with:
deno-version: "1.29.1"
- name: 'Update restrauants'
run: deno run --allow-net --allow-read --allow-write ./cron/update-restaurants-from-bpp.ts
# run: deno run --allow-net --allow-read --allow-write ./cron/update-restaurants.ts
# run: node ./cron/update-restaurants-from-bpp.mjs
# run: node ./cron/update-restaurants.mjs
- name: "Push Updated"
run: |
git config user.name naram.dash
git config user.email juho_kim@outlook.com
git add .
git commit -m "Restaurants Updated by GitHub Action Scheduled"
git push
call_main_ci_cd:
needs: update_restrauants
uses: ./.github/workflows/azure-static-web-apps.yml
secrets: inherit
# AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_WATER_02A9F0300: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_WATER_02A9F0300 }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}