-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (35 loc) · 1.09 KB
/
do_prediction.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
on:
workflow_dispatch:
schedule:
- cron: "0 20 * * *"
# push:
jobs:
build:
if: github.repository == 'mdietze/FluxCourseForecast' ## update to your username
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
container:
image: rocker/geospatial
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install R packages
run: R -e 'source("install.R")'
- name: Run automatic prediction file
run: Rscript forecast.R
- name: Commit changes
run: git config --global --add safe.directory /__w/FluxCourseForecast/FluxCourseForecast
- uses: EndBug/add-and-commit@v9
with:
add: 'analysis/*.RDS'
author_name: Michael Dietze
author_email: [email protected]
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# file_pattern: 'analysis/*.RDS'