From f9435f07e1fe1d6c12cf8307f68038c150490202 Mon Sep 17 00:00:00 2001 From: Dmitry Starov Date: Sun, 15 Sep 2024 05:54:29 +0200 Subject: [PATCH 1/2] Set tag within CI --- .../unreleased/Fixed-20240915-055331.yaml | 3 +++ .github/workflows/release.yml | 26 +++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Fixed-20240915-055331.yaml diff --git a/.changes/unreleased/Fixed-20240915-055331.yaml b/.changes/unreleased/Fixed-20240915-055331.yaml new file mode 100644 index 0000000..01d2935 --- /dev/null +++ b/.changes/unreleased/Fixed-20240915-055331.yaml @@ -0,0 +1,3 @@ +kind: Fixed +body: Set tag within CI. +time: 2024-09-15T05:53:31.3172114+02:00 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 014ba31..572b71f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,10 +30,32 @@ jobs: outputs: latest: ${{ steps.latest.outputs.output }} - goreleaser: - name: Release ${{ needs.get-version.outputs.latest }} + set-tag: + name: Set tag needs: - get-version + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + fetch-depth: 0 + + - name: Set tag + id: set + uses: anothrNick/github-tag-action@777684df761b882a3f4f70db16ac70d8cc78d0ea # v1.70.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CUSTOM_TAG: ${{ needs.get-version.outputs.latest }} + WITH_V: true + + outputs: + tag: ${{ steps.set.outputs.tag }} + + goreleaser: + name: Release ${{ needs.set-tag.outputs.tag }} + needs: + - set-tag environment: terraform-registry runs-on: ubuntu-latest steps: From c781bcae6f4e8a32d10e90b6b2aac2efa4ebe9e3 Mon Sep 17 00:00:00 2001 From: Dmitry Starov Date: Sun, 15 Sep 2024 05:55:23 +0200 Subject: [PATCH 2/2] Bump version to `v1.1.1` --- .changes/unreleased/Fixed-20240915-055331.yaml | 3 --- .changes/v1.1.1.md | 5 +++++ CHANGELOG.md | 7 +++++++ 3 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 .changes/unreleased/Fixed-20240915-055331.yaml create mode 100644 .changes/v1.1.1.md diff --git a/.changes/unreleased/Fixed-20240915-055331.yaml b/.changes/unreleased/Fixed-20240915-055331.yaml deleted file mode 100644 index 01d2935..0000000 --- a/.changes/unreleased/Fixed-20240915-055331.yaml +++ /dev/null @@ -1,3 +0,0 @@ -kind: Fixed -body: Set tag within CI. -time: 2024-09-15T05:53:31.3172114+02:00 diff --git a/.changes/v1.1.1.md b/.changes/v1.1.1.md new file mode 100644 index 0000000..45a4979 --- /dev/null +++ b/.changes/v1.1.1.md @@ -0,0 +1,5 @@ +## v1.1.1 - 2024-09-15 + +### Fixed + +* Set tag within CI. diff --git a/CHANGELOG.md b/CHANGELOG.md index 660d845..8c433c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## v1.1.1 - 2024-09-15 + +### Fixed + +* Set tag within CI. + + ## v1.1.0 - 2024-09-15 ### Enhanced