Skip to content

Update download.yml

Update download.yml #2

Workflow file for this run

# This is a basic workflow that is manually triggered
name: download files
on:
push
import-data:
runs-on: ubuntu-latest
steps:
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::tidyverse
any::stringr
- name: Check out repository
uses: actions/checkout@v4
- name: Import data
run: Rscript -e 'source("scripts/download_txt_rules.R")'
- name: Commit results
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add rules/\*
git commit -am 'Text files added or updated' || echo "No changes to commit"
git push origin main || echo "No changes to commit"
# 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: Send greeting
run: echo "Hello ${{ inputs.name }}"