Update download.yml #2
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
# 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 }}" |