Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikemahoney218/upload-to-drat-repo
Automatic CD by pushing packages to drat repos
https://github.com/mikemahoney218/upload-to-drat-repo
actions cd ci drat github-actions r r-cran r-package
Last synced: 22 days ago
JSON representation
Automatic CD by pushing packages to drat repos
- Host: GitHub
- URL: https://github.com/mikemahoney218/upload-to-drat-repo
- Owner: mikemahoney218
- License: mit
- Created: 2021-09-22T15:32:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T15:08:24.000Z (7 months ago)
- Last Synced: 2024-10-11T17:15:08.025Z (about 1 month ago)
- Topics: actions, cd, ci, drat, github-actions, r, r-cran, r-package
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automatically upload R packages to a {drat} repo
This action checks out the git repo for an R package, builds it (via `R CMD build`), adds it to a [{drat}](https://github.com/eddelbuettel/drat) repository (via `drat::insertPackage` and `drat::updateRepo`), and then pushes that `drat` repo to GitHub.
This action accepts the following input parameters:
+ `package`: The GitHub repository for the package you want to upload. Defaults to the repository the action is running in.
+ `drat_repo`: The GitHub repository for the drat repo to update. No default, **must be specified**.
+ `token`: A PAT used to clone `package` and clone _and_ push to `drat_repo`. It is highly recommended you use a service account with the fewest permissions possible for this job.
+ `commit_message`: The message to use when committing to `drat_repo`.
+ `commit_author`: The author to write the commit as; used to set `git config user.name`.
+ `commit_email`: The author to write the commit as; used to set `git config user.email`. No default, **must be specified**.[Click here to see a live example of this action in use.](https://github.com/ropensci/terrainr/blob/main/.github/workflows/drat.yml)