GithubHelp home page GithubHelp logo

2021-10-27_dfo-gh-actions's Introduction

2021-10-27_dfo-gh-actions

GitHub Actions is a way to run code on somebody else's computer. You can run code on a scheduled basis or when specific actions occur (the most common event is when you push your changes to GitHub. A few examples:

GitHub Actions are YAML files that live in the ".github/workflows" directory of a GitHub repository. To practice, make a fork of this repository and then open up the ".github/workflows/hello-world-action.yaml" file. The file looks like this:

I'll describe the steps from the bottom up.

  • The action produces a pdf document (demo.pdf) from an RMarkdown file (demo.Rmd). This pdf output is made availabe by the "upload artifact" step as a clickable link in the build log.
  • The document is rendered using rmarkdown::render().
  • Before the document is rendered, the actions needs to install R, install the ability to produce PDF output, and install R packages it needs.

Your turn 1

Since you've just forked the repository, the action hasn't run for you yet. Update the author name in the document from "Dewey Dunnington" to your own name. You can do this by clicking the "edit" link at the top (no need to clone into your local computer if you don't want to!).

Click "commit changes" at the bottom and wait for your action to complete.

When the action has completed, open the "demo.pdf" artifact to view your results!

Resources

A few links to official and unofficial guides:

2021-10-27_dfo-gh-actions's People

Contributors

paleolimbot avatar

Watchers

 avatar

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.