You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Prerequisites

Make sure you have a version of git installed and have a GitHub account.

Setup

Fork the repository https://github.com/rhaas80/spin2020 into a repository of your own and clone your forked repository to your laptop.

Exercise

Add a new "Simple workflow" using the Action tab of you repository page on GitHub (this would be https://github.com/rhaas80/spin2020/actions/new for the demo repo).

Configure an action that outputs the commit hash of HEAD using the command git rev-parse and whose output it if a form similar to

HEAD is bb8c42de11e171e22a7df0615981608faf35ea4d

Once the action is in place on GitHub, add a line consisting of your name to README.md and commit it to trigger the workflow. Check that the workflow triggered and produced output on the Actions pane. You should see output similar to this:

Once done, please send me the URL of your repository on GitHub using my rhaas@illinois.edu email address.



  • No labels