From 970fbd9166dfafea393f1f07ccf3276f714331cc Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Wed, 20 Sep 2023 16:06:08 -0400 Subject: [PATCH] Update chronicle to v0.8.0 (#1507) * use annotated tags, update chronicle, fix cache keys Signed-off-by: Alex Goodman * dont show the title in the release notes Signed-off-by: Alex Goodman --------- Signed-off-by: Alex Goodman --- .chronicle.yaml | 1 + .github/actions/bootstrap/action.yaml | 8 ++++---- .github/workflows/release.yaml | 7 +++---- Makefile | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.chronicle.yaml b/.chronicle.yaml index 400437c8..a2e6c04b 100644 --- a/.chronicle.yaml +++ b/.chronicle.yaml @@ -1 +1,2 @@ enforce-v0: true # don't make breaking-change label bump major version before 1.0. +title: "" diff --git a/.github/actions/bootstrap/action.yaml b/.github/actions/bootstrap/action.yaml index 0bf02eb1..7fdf6fc7 100644 --- a/.github/actions/bootstrap/action.yaml +++ b/.github/actions/bootstrap/action.yaml @@ -63,9 +63,9 @@ runs: with: path: | ~/go/pkg/mod - key: ${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }} + key: ${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-mod-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}- + ${{ inputs.cache-key-prefix }}-${{ runner.os }}-go-mod-${{ inputs.go-version }}- - name: (cache-miss) Bootstrap project tools shell: bash @@ -79,9 +79,9 @@ runs: with: path: | ~/.cache/go-build - key: ${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }} + key: ${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-build-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-${{ inputs.go-version }}- + ${{ inputs.cache-key-prefix }}-${{ inputs.build-cache-key-prefix }}-${{ runner.os }}-go-build-${{ inputs.go-version }}- - name: (cache-miss) Bootstrap go dependencies shell: bash diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 01a43e6b..fa1e3e10 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,9 +6,6 @@ on: description: tag the latest commit on main with the given version (prefixed with v) required: true -env: - GO_VERSION: "1.21.x" - permissions: contents: read @@ -121,7 +118,9 @@ jobs: - name: Tag release run: | - git tag ${{ github.event.inputs.version }} + git config user.name "anchoreci" + git config user.email "anchoreci@users.noreply.github.com" + git tag -a ${{ github.event.inputs.version }} -m "Release ${{ github.event.inputs.version }}" git push origin --tags env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Makefile b/Makefile index b3cf2ad9..d4b3758b 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ GLOW_CMD = $(TEMP_DIR)/glow GOLANGCILINT_VERSION := v1.54.2 GOSIMPORTS_VERSION := v0.3.8 BOUNCER_VERSION := v0.4.0 -CHRONICLE_VERSION := v0.7.0 +CHRONICLE_VERSION := v0.8.0 GORELEASER_VERSION := v1.20.0 YAJSV_VERSION := v1.4.1 QUILL_VERSION := v0.4.1