From 8042dab83713e1cc99e2aa3957f3b5cb23f9cba1 Mon Sep 17 00:00:00 2001 From: Brian Shore Date: Fri, 8 Sep 2023 09:08:51 -0700 Subject: [PATCH] Install the latest release by default. --- README.md | 16 ++++++---------- action.yml | 4 ++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index cc11053..66e91db 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ jobs: | Input | Description | Default | | ------------------ | --------------------------------------------------------- | ---------------------- | | `github-token` | GitHub token with release asset access to `hc-releases`. | | -| `version` | Version of `hc-releases` to install. | `v0.1.15` | +| `version` | Version of `hc-releases` to install. | Latest release | ### Outputs @@ -42,14 +42,10 @@ act --container-architecture=linux/amd64 --input github-token=$(gh auth token) w The default version is set to avoid failed workflows if a broken `hc-releases` is published but can be passed explicitly for testing. -### Supporting a new version of hc-releases +### Creating a Release -1. Clone this repo -1. Update the default release version of `hc-releases` - * [README](https://github.com/hashicorp/setup-hc-releases/blob/main/README.md) chart - * Input `version` in [action.yml](https://github.com/hashicorp/setup-hc-releases/blob/main/action.yml#L18) -1. Commit your changes, open a PR, get it reviewed, and merge to `main`. -1. Checkout the `main` branch and pull the latest changes. +After your PR is merged to the default branch, `main`: +1. Update locally: `git checkout main && git pull` 1. Create a new tag for the release, e.g. `v2.0.1` with `git tag v2.0.1 && git push origin v2.0.1`. -1. Delete the major version tag, e.g. `git tag -d v2 && git push origin :refs/tags/v2` -1. Create a new major version tag, e.g. `git tag v2 && git push origin v2` +1. Update the major version tag locally, e.g. `git tag -d v2 && git tag v2` +1. Update the tag upstream, e.g. `git push origin :refs/tags/v2 && git push origin v2` diff --git a/action.yml b/action.yml index cd3b6b3..d0af9d9 100644 --- a/action.yml +++ b/action.yml @@ -15,8 +15,8 @@ inputs: description: "GitHub token with release asset access to hc-releases." required: true version: - description: "Version of hc-releases to install, e.g. v0.1.10." - default: "v0.1.15" + description: "Version of hc-releases to install, e.g. v0.1.10. (Defaults to latest release)" + default: "" install-dir: description: "Where the tool will be installed; this directory will be added to GITHUB_PATH." default: "$HOME/bin"