-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Add GHA workflow example and function for adding it #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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( | ||
| url = system.file("fledge.yaml", package = "fledge"), | ||
| save_as = save_as | ||
| ) | ||
| } | ||
| 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: | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should there be an action
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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")' | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
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