Skip to content

Commit 0a9e216

Browse files
committed
GHA update
1 parent e5de3af commit 0a9e216

File tree

5 files changed

+8
-30
lines changed

5 files changed

+8
-30
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- {os: ubuntu-18.04, r: 'oldrel-1'}
3535
- {os: ubuntu-18.04, r: 'oldrel-2'}
3636
- {os: ubuntu-18.04, r: 'oldrel-3'}
37+
- {os: ubuntu-18.04, r: 'oldrel-4'}
3738

3839
env:
3940
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -55,15 +56,3 @@ jobs:
5556
extra-packages: rcmdcheck
5657

5758
- uses: r-lib/actions/check-r-package@v1
58-
59-
- name: Show testthat output
60-
if: always()
61-
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
62-
shell: bash
63-
64-
- name: Upload check results
65-
if: failure()
66-
uses: actions/upload-artifact@main
67-
with:
68-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
69-
path: check

.github/workflows/pkgdown.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3-
# Add Config/Needs/website: tidyverse/tidytemplate to DESCRIPTION
43
on:
54
push:
65
branches: [main, master]
7-
tags: ['*']
8-
pull_request:
9-
branches: [main, master]
6+
release:
7+
types: [published]
8+
workflow_dispatch:
109

1110
name: pkgdown
1211

@@ -29,16 +28,7 @@ jobs:
2928
extra-packages: pkgdown
3029
needs: website
3130

32-
- name: Install package
33-
run: R CMD INSTALL .
34-
35-
- name: Build site
36-
if: github.event_name == 'pull_request'
37-
run: |
38-
Rscript -e 'pkgdown::build_site()'
39-
4031
- name: Deploy package
41-
if: github.event_name == 'push'
4232
run: |
4333
git config --local user.name "$GITHUB_ACTOR"
4434
git config --local user.email "[email protected]"

.github/workflows/pr-commands.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Commands
88

99
jobs:
1010
document:
11-
if: startsWith(github.event.comment.body, '/document')
11+
if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/document') }}
1212
name: document
1313
runs-on: ubuntu-latest
1414
env:
@@ -43,7 +43,7 @@ jobs:
4343
repo-token: ${{ secrets.GITHUB_TOKEN }}
4444

4545
style:
46-
if: startsWith(github.event.comment.body, '/style')
46+
if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/style') }}
4747
name: style
4848
runs-on: ubuntu-latest
4949
env:

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ library(dplyr)
99
library(modeldb)
1010
```
1111

12-
[![R build status](https://github.com/tidymodels/modeldb/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/modeldb/actions)
12+
[![R-CMD-check](https://github.com/tidymodels/modeldb/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/modeldb/actions)
1313
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/modeldb)](https://CRAN.R-project.org/package=modeldb)
1414
[![Codecov test coverage](https://codecov.io/gh/tidymodels/modeldb/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/modeldb?branch=main)
1515
[![Downloads](http://cranlogs.r-pkg.org/badges/modeldb)](https://CRAN.R-project.org/package=modeldb)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11

22
# modeldb <img src="man/figures/logo.png" align="right" alt="" width="120" />
33

4-
[![R build
5-
status](https://github.com/tidymodels/modeldb/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/modeldb/actions)
4+
[![R-CMD-check](https://github.com/tidymodels/modeldb/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/modeldb/actions)
65
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/modeldb)](https://CRAN.R-project.org/package=modeldb)
76
[![Codecov test
87
coverage](https://codecov.io/gh/tidymodels/modeldb/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/modeldb?branch=main)

0 commit comments

Comments
 (0)