-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ropensci/update-ghactions
Update all gh-actions to @v2
- Loading branch information
Showing
5 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
paths: ['README.Rmd'] | ||
paths: ["README.Rmd"] | ||
|
||
name: Render-README | ||
|
||
|
@@ -17,21 +17,22 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v1 | ||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
- uses: r-lib/actions/setup-r@v2 | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v1 | ||
with: | ||
extra-packages: rmarkdown | ||
- uses: r-lib/actions/setup-renv@v2 | ||
|
||
- name: Install rmarkdown | ||
run: Rscript -e 'install.packages("rmarkdown")' | ||
|
||
- name: Render README files | ||
run: Rscript -e 'rmarkdown::render("README.Rmd")' | ||
|
||
- name: Commit README | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add README.md | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git add README.* man/figures/README-* | ||
git commit -m "Re-build README.md" || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
|
||
on: | ||
push: | ||
branches: [master, development] | ||
pull_request: | ||
branches: [master, development] | ||
branches: [master] | ||
|
||
name: Test-coverage | ||
|
||
jobs: | ||
test-coverage: | ||
|
||
if: "!contains(github.event.commits[0].message, '[skip-ci]')" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v1 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: covr | ||
extra-packages: any::covr | ||
needs: coverage | ||
|
||
- name: Test coverage | ||
run: covr::codecov() | ||
run: covr::codecov(quiet = FALSE) | ||
shell: Rscript {0} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
paths: ['DESCRIPTION'] | ||
|
||
name: write-codemeta | ||
name: Write-codemeta | ||
|
||
jobs: | ||
render-readme: | ||
|
@@ -17,19 +17,19 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
- uses: r-lib/actions/setup-r@v2 | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v1 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: codemeta | ||
extra-packages: any::codemeta | ||
|
||
- name: Write codemeta file | ||
run: Rscript -e 'codemeta::write_codemeta()' | ||
|
||
- name: Commit codemeta file | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git add codemeta.json | ||
git commit -m "Re-write codemeta.json" || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.