Giter Club home page Giter Club logo

upload-to-drat-repo's Introduction

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} 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.

upload-to-drat-repo's People

Contributors

mikemahoney218 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

upload-to-drat-repo's Issues

Update checkout to v4

Hi there,

First of all, thank you so much for creating this GitHub action! It's been very helpful.

I noticed in the action.yml file that the checkout version is currently set to a previous version. Would it be possible to update it to v4?

Thanks again for your work on this!

Enhance drat action with `drat::archivePackages` functionality

Hi again,

I've noticed that in the drat package, there's a function called drat::archivePackages which moves older versions into a CRAN-style archive folder. I believe incorporating this functionality into the action would be beneficial.

To achieve this, could you consider adding the following line to the action's script?

R -e `drat::archivePackages(repopath = 'drat')`

I think this could effectively replace the current line:

R -e 'drat::updateRepo("drat")'

What do you think? Should this be an optional feature or included by default?

Thank you once again for your efforts!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.