diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..0e95e244 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,15 @@ +on: + release: + types: + - published + +name: Update Go Module Index + +jobs: + bump-index: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Ping endpoint + run: curl "https://proxy.golang.org/github.com/warrensbox/terraform-switcher/@v/$(git describe HEAD --tags --abbrev=0).info" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba3ce8cc..b2fbea99 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,7 +55,7 @@ jobs: id: semver-tag-dry env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WITH_V: false + WITH_V: true INITIAL_VERSION: 1.0.0 RELEASE_BRANCHES: master DEFAULT_BUMP: ${{ github.event.inputs.name }} diff --git a/README.md b/README.md index 26927d19..0e522fb5 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ If you do not have a particular version of terraform installed, `tfswitch` will The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform. +## NOTE +Going forward we will change the version identifier of `tfswitch` to align with the common go package versioning. +Please be advised to change any automated implementation you might have that is relying on the `tfswitch` version string. +**Old version string:** `0.1.2412` +**New version string:** `v1.0.0` Note the `v` that is preceding all version numbers. + ## Installation `tfswitch` is available for MacOS and Linux based operating systems.