-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a3aa38
commit e8890c0
Showing
1 changed file
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
# This is a basic workflow that is manually triggered | ||
name: Run download_data.R | ||
|
||
name: Manual workflow | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
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 "greet" | ||
greet: | ||
# The type of runner that the job will run on | ||
run-script: | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Runs a single command using the runners shell | ||
- name: Download data | ||
run: Rscript download_data.R | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: '4.10' # You can specify the version of R you need | ||
|
||
- name: Install R packages | ||
run: | | ||
Rscript -e 'install.packages(c("osfr"), repos="https://cran.rstudio.com")' | ||
# Add any other packages your script might need | ||
- name: Run download_data.R | ||
run: | | ||
Rscript scripts/download_data.R |