From 762ced7c0e271aa21d075afb8ba6d782449a6173 Mon Sep 17 00:00:00 2001 From: Andrei Dabija Date: Thu, 3 Sep 2026 13:12:44 +0300 Subject: [PATCH] Post releases to Slack via sdk-release-notify Adds a workflow that posts every published GitHub Release of this repo to #public-sdk-releases (SDK, version, releaser, release notes). The logic lives in GameAnalytics/sdk-release-notify; this file only names the SDK. A manual trigger re-posts an existing tag. Also adds a notify job to create_release.yml so releases created by the workflow credit the person who triggered it instead of the bot. --- .github/workflows/create_release.yml | 12 ++++++++ .github/workflows/slack-release-notify.yml | 32 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/slack-release-notify.yml diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 7f6ce0d..1eaeba9 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -138,3 +138,15 @@ jobs: ga-sdk-static-${{ inputs.tag_name }}.zip ga-sdk-shared-${{ inputs.tag_name }}.zip ga-sdk-static-no-deps-${{ inputs.tag_name }}.zip + + + notify: + name: Slack notification + needs: release + uses: GameAnalytics/sdk-release-notify/.github/workflows/notify.yml@main + with: + sdk_name: C++ SDK + tag: ${{ inputs.tag_name }} + releaser: ${{ github.actor }} + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/slack-release-notify.yml b/.github/workflows/slack-release-notify.yml new file mode 100644 index 0000000..c0f7293 --- /dev/null +++ b/.github/workflows/slack-release-notify.yml @@ -0,0 +1,32 @@ +# Posts every published release of this repo to Slack (#public-sdk-releases). +# Logic lives in GameAnalytics/sdk-release-notify; this file only names the SDK. +# +# To re-post an existing release (pilot, or Slack was down): Actions tab → +# "Slack release notification" → Run workflow → enter the tag. + +name: Slack release notification + +on: + release: + types: [published] + workflow_dispatch: + inputs: + tag: + description: Existing release tag to (re)post, e.g. 1.2.3 + required: true + type: string + +jobs: + notify: + # Skip pre-releases, and skip releases created by a bot: repos whose + # releases are cut by a workflow post from that workflow instead, so the + # real person can be credited. + if: >- + github.event_name == 'workflow_dispatch' || + (!github.event.release.prerelease && !endsWith(github.event.release.author.login, '[bot]')) + uses: GameAnalytics/sdk-release-notify/.github/workflows/notify.yml@main + with: + sdk_name: C++ SDK + tag: ${{ inputs.tag }} + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}