Use Habitat in GitHub Actions workflows

I created this GitHub action to help with using Habitat inside the Linux workflow runner:

I needed a way for hab commands to all work without sudo in the runner environment, so that I could invoke scripts that might hab pkg install and then do other stuff without all their other output ending up owned by root.

This action installs the latest hab binary and then tweaks the environment a bit for rootless use. It can optionally also install a set of packages for you before continuing to your next step:

name: Build with Chef Habitat
on:
  push:
    branches:
      - master
jobs:
  habitat-build:
    runs-on: ubuntu-latest
    steps:
    - name: 'Initialize Chef Habitat environment'
      uses: JarvusInnovations/habitat-action@master
      env:
        HAB_LICENSE: accept
      with:
        deps: |
          core/git
          core/hab-studio
    - run: hab pkg exec core/git git clone https://github.com/JarvusInnovations/habitat-compose
    - run: hab origin key generate jarvus
    - run: hab pkg build ./habitat-compose/
      env:
        HAB_ORIGIN: jarvus
    # - name: Open tmate/tmux session for remote debug shell
    #   uses: mxschmitt/action-tmate@v1

See full usage notes in README.