-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (36 loc) · 1008 Bytes
/
rda-authors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@v4
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'