fix(author): Adds Megan #15
Workflow file for this run
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
name: update authors.rda file | |
on: | |
push: | |
paths: | |
'data-raw/authors.csv' | |
jobs: | |
rda-authors: | |
runs-on: ubuntu-latest | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
repository: 'pfmc-assessments/sa4ss' | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Setup dependent packages | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
needs: | | |
data | |
- name: Run R | |
run: | | |
install.packages("usethis") | |
source("data-raw/authors.R") | |
shell: Rscript {0} | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
commit-message: Update authors.rda | |
branch: rda-authors | |
title: 'Update the authors.rda file upon push' | |
labels: 'topic: data-raw' |