From 23ceaa88cf737d75de595403af7f600c3eb58358 Mon Sep 17 00:00:00 2001 From: Ian Taylor <4992918+iantaylor-NOAA@users.noreply.github.com> Date: Thu, 30 May 2024 09:13:37 -0700 Subject: [PATCH] add more github actions thanks to {ghactions4r} --- .github/.gitignore | 1 + .github/workflows/call-style-description.yml | 17 +++++++++++++++++ .github/workflows/call-style.yml | 12 ++++++++++++ .github/workflows/call-update-docs.yml | 11 +++++++++++ README.md | 2 +- 5 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/call-style-description.yml create mode 100644 .github/workflows/call-style.yml create mode 100644 .github/workflows/call-update-docs.yml diff --git a/.github/.gitignore b/.github/.gitignore index 2d19fc7..0c817ed 100644 --- a/.github/.gitignore +++ b/.github/.gitignore @@ -1 +1,2 @@ *.html +*.rds diff --git a/.github/workflows/call-style-description.yml b/.github/workflows/call-style-description.yml new file mode 100644 index 0000000..b5fd16b --- /dev/null +++ b/.github/workflows/call-style-description.yml @@ -0,0 +1,17 @@ +# use usethis::use_tidy_description() to style DESCRIPTION file and open any +# changes as a pull request to the branch that started the workflow +name: call-style-description +# on specifies the build triggers. See more info at +# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows +on: +# workflow_dispatch allows for pushing a button to run the workflow manually +# push runs the workflow on branches listed in square brackets +# uncomment the following line to add manual capabilities + #workflow_dispatch: + push: + branches: [main, master] + paths: + - 'DESCRIPTION' +jobs: + call-workflow: + uses: nmfs-fish-tools/ghactions4r/.github/workflows/style-description.yml@main diff --git a/.github/workflows/call-style.yml b/.github/workflows/call-style.yml new file mode 100644 index 0000000..56e00ef --- /dev/null +++ b/.github/workflows/call-style.yml @@ -0,0 +1,12 @@ +# use styler::style_active_package() to style code and open any changes as a pull request to the branch that started the workflow +name: call-style +# on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows +on: +# workflow_dispatch requires pushing a button to run the workflow manually. uncomment the following line to add: + #workflow_dispatch: + # Runs the workflow on each push to the main or master branch: + push: + branches: [main, master] +jobs: + call-workflow: + uses: nmfs-fish-tools/ghactions4r/.github/workflows/style-r-code.yml@main diff --git a/.github/workflows/call-update-docs.yml b/.github/workflows/call-update-docs.yml new file mode 100644 index 0000000..e2d83de --- /dev/null +++ b/.github/workflows/call-update-docs.yml @@ -0,0 +1,11 @@ +# run devtools::document and open any changes as a pull request to the branch that started the workflow +name: call-update-docs +on: +# workflow_dispatch requires pushing a button to run the workflow manually. uncomment the following line to add: + #workflow_dispatch: + # Runs the workflow on each push to the main or master branch: + push: + branches: [main, master] +jobs: + call-workflow: + uses: nmfs-fish-tools/ghactions4r/.github/workflows/update-roxygen-docs.yml@main diff --git a/README.md b/README.md index fd2564d..1537f90 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ AgeingError * Software to estimate ageing error given double-reads of hard structures (e.g., otoliths) - [![R build status](https://github.com/pfmc-assessments/AgeingError/workflows/R-CMD-check/badge.svg)](https://github.com/pfmc-assessments/AgeingError/actions) + [![call-r-cmd-check](https://github.com/r4ss/r4ss/actions/workflows/call-r-cmd-check.yml/badge.svg)](https://github.com/r4ss/r4ss/actions/workflows/call-r-cmd-check.yml) Instructions