-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 915 Bytes
/
fetch.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
name: Fetch meals
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
jobs:
fetch_meals:
name: Fetch meals for 7 days
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Download CLI JAR
uses: dawidd6/action-download-artifact@v3
with:
workflow: ci.yml
workflow_conclusion: success
- name: Run scraper
shell: bash
env:
NUM_DAYS: '7'
JAR_PATH: 'cli/cli-*-dependencies.jar'
run: bash fetch.sh
- name: Commit
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
add: 'archive'
message: 'data: fetch latest meals'