From 2844b9878fdf53ed634c3f07e785411baed2efe8 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Fri, 25 Sep 2020 23:13:21 -0400 Subject: [PATCH] add release notification Signed-off-by: Alex Goodman --- .github/workflows/release.yaml | 16 ++++++++-------- Makefile | 5 ++++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9b843ef31..2f7109505 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -123,14 +123,14 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.TOOLBOX_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.TOOLBOX_AWS_SECRET_ACCESS_KEY }} -# - uses: 8398a7/action-slack@v3 -# with: -# status: ${{ job.status }} -# fields: repo,workflow,action,eventName -# text: "A new Syft release is ready to be (manually) published from https://github.com/anchore/syft/releases" -# env: -# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }} -# if: ${{ success() }} + - uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + fields: repo,workflow,action,eventName + text: "A new Syft release is ready to be manually published: https://github.com/anchore/syft/releases" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }} + if: ${{ success() }} - uses: actions/upload-artifact@v2 with: diff --git a/Makefile b/Makefile index 97b83db0b..294100ca5 100644 --- a/Makefile +++ b/Makefile @@ -244,6 +244,9 @@ changelog-release: --no-issues-wo-labels \ --since-tag $(SECOND_TO_LAST_TAG) + @printf '\n$(BOLD)$(CYAN)Release $(VERSION) Changelog$(RESET)\n\n' + @cat CHANGELOG.md + .PHONY: changelog-unreleased changelog-unreleased: ## show the current changelog that will be produced on the next release (note: requires GITHUB_TOKEN set) @docker run -it --rm \ @@ -259,7 +262,7 @@ changelog-unreleased: ## show the current changelog that will be produced on the @docker run -it --rm \ -v $(shell pwd)/CHANGELOG.md:/CHANGELOG.md \ rawkode/mdv \ - -t 696.6153 \ + -t 748.5989 \ /CHANGELOG.md .PHONY: release