From 86b1008052d9bae8bb5a35d3d0a787ef11d9788a Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Fri, 26 Jan 2024 20:45:39 -0800 Subject: [PATCH] GitHub action for release notices on Slack (#365) Similar to OpenEXR (https://github.com/AcademySoftwareFoundation/openexr/pull/1601) Signed-off-by: Cary Phillips --- .github/workflows/release-notice.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release-notice.yml diff --git a/.github/workflows/release-notice.yml b/.github/workflows/release-notice.yml new file mode 100644 index 00000000..8496cd6c --- /dev/null +++ b/.github/workflows/release-notice.yml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) Contributors to the OpenEXR Project. + +name: Publish Release Notice to ASWF Slack + +on: + release: + types: + - published + # published should cover both 'released' and 'prereleased' + +jobs: + publish: + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: 'Notify Slack #release-announcements' + id: slack1 + with: + project_name: "Imath" + slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }} + slack_channel: "#release-announcements" + project_logo: "https://artwork.aswf.io/projects/openexr/icon/color/openexr-icon-color.png" + uses: jmertic/slack-release-notifier@main + + - name: 'Notify Slack #openexr' + id: slack2 + with: + project_name: "Imath" + slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }} + slack_channel: "#openexr" + project_logo: "https://artwork.aswf.io/other/aswf/text/aqua/aswf-text-aqua.png" + project_logo: "https://artwork.aswf.io/projects/openexr/icon/color/openexr-icon-color.png" + uses: jmertic/slack-release-notifier@main + \ No newline at end of file