-
Notifications
You must be signed in to change notification settings - Fork 65
39 lines (31 loc) · 1005 Bytes
/
test_gha.yaml
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
39
on: workflow_dispatch
name: GHA test
jobs:
gha_test:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.NFLVERSE_GH_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 1
extra-packages: |
nflverse/nflfastR
nflverse/nflreadr
nflverse/nflverse-data
ropensci/piggyback
- name: Run update script
run: |
writeLines(paste0("export NFLFASTR_VERSION=",as.character(packageVersion("nflfastR"))),".ver")
writeLines(as.character(runif(1)),"blob.txt")
nflversedata::nflverse_upload("blob.txt","pbp")
shell: Rscript {0}
- name: Commit results
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
source .ver