Skip to content

Commit

Permalink
Update manual.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
halleeshearer authored Aug 7, 2024
1 parent 0a3aa38 commit e8890c0
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/manual.yml
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

0 comments on commit e8890c0

Please sign in to comment.