For internal HashiCorp use only. The output of this action is specifically designed to satisfy the needs of our internal deployment system, and may not be useful to other organizations.
GitHub action to setup bob
CLI. This action can be run on ubuntu-latest
and macos-latest
GitHub Actions runners, and will install and expose a specified version of the bob
CLI on the runner environment.
The pattern for this action copied from https://github.com/hashicorp/setup-hc-releases
as it has reliable tests and error handling patterns.
Setup the bob
CLI:
steps:
- uses: hashicorp/action-setup-bob@v1
with:
github-token:
${{ secrets.GITHUB_TOKEN }}
A specific version of the bob
CLI can be installed:
steps:
- uses: hashicorp/action-setup-bob@v1
with:
github-token:
${{ secrets.GITHUB_TOKEN }}
version:
0.1.0
The actions supports the following inputs:
github-token
: The GitHub token secret to use with permissions to downloadbob
CLIversion
: The version ofbob
to install, defaulting to latest
If you have released a new version of bob, you will need to update the bob version here to ensure it points to the correct version. An example of this update should look like this Once the bob version has been updated, you will need to create a new tag and point it to the major version tag.
Updating bob
Version
- Checkout to a new branch
- Update bob version
- Run
npm run prepare
(you might have to do anpm install
to wake up npm if you haven't used it in a while) - Push your changes, open up a PR, get it approved + merged.
Create a New Tag
git checkout main && git pull origin main
git tag v<new-version-number> && git push origin v<new-version-number>
- Push the tag while you're on the
main
branch - Depending on which major version the action is on, you will need to delete and update the tag version:
git tag -d v1 && git push origin :refs/tags/v1
git tag v1 && git push origin v1
(or whatever main version the action is on)