-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (25 loc) · 920 Bytes
/
fetch_data.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
on:
[push]
#schedule:
# * is a special character in YAML so you have to quote this string
# - cron: '* * * * *'
jobs:
fetch_menu_job:
runs-on: ubuntu-latest
name: Fetches menu and updates gist
steps:
- name: Fetch menu step
id: fetchMenu
uses: ollitoivanen/OpiskelijalounasWebFetchAction@v0.8
- name: Get the output menu
run: |
curl \
--request PUT \
--header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
--header "Accept: application/vnd.github.v3+json" \
--url "https://api.github.com/repos/ollitoivanen/OpiskelijalounasWebFetchAction/contents/all_restaurants_menu.json" \
--data '{\
"message":"Update menu list.",\
"content": "${{ steps.fetchMenu.outputs.menu }}",\
"sha": "c0a8928cdb2ace9f903fd0a97f355f3af08234b1"\
}' \