-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.24 KB
/
main.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
# Usage: the gh-pages can also be built via the command `quarto publish gh-pages` in the terminal
# Simple data transformation workflow
name: OECD Unemployment Rate CHE
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
workflow_dispatch
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
oecd:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container: rocker/verse
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- run: git version
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- run: git version
- run: |
Rscript -e 'install.packages(c("data.table", "zoo","tsbox","OECD"))'
chmod +x demo/demo_gha.R
./demo/demo_gha.R
- run: ls -lah
# - run: |
# git config user.email github-actions
# git config user.name github-actions@github.com
# git add data/unemployment_rate_ch.csv
# git commit -m 'automatic raw data update'
# git push