Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export(tag_version)
export(unbump_version)
export(update_news)
export(update_version)
export(use_github_action_pkgcheck)
export(with_demo_project)
import(cli)
import(glue)
Expand Down
13 changes: 13 additions & 0 deletions R/use_github_action_fledge.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#' Use fledge GitHub Actions workflow
#'
#' @inheritParams usethis::use_github_action
#'
#' @return Nothing, called for its side-effect.
#' @export
#'
use_github_action_pkgcheck <- function(save_as = NULL) {
usethis::use_github_action(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since fledge already imports usethis

url = system.file("fledge.yaml", package = "fledge"),
save_as = save_as
)
}
26 changes: 26 additions & 0 deletions inst/fledge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: fledge

on:
# for manual triggers
workflow_dispatch:
# daily run
schedule:
- cron: "30 14 * * *"

jobs:
pkgcheck:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should there be an action

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean an actual GitHub Action that someone (Wael?) would create :-)

runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install fledge
run: Rscript -e 'install.packages("fledge")'

- name: Bump version
run: Rscript -e 'fledge::bump_version(which = "dev")'
20 changes: 20 additions & 0 deletions man/use_github_action_pkgcheck.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.