From 6c862cd5634b7e1ec7731bd4134b36b6a138d957 Mon Sep 17 00:00:00 2001 From: Nicolas CHAIX Date: Wed, 19 Aug 2026 15:22:07 +0200 Subject: [PATCH] disable slack web hook (wrong params) --- .github/workflows/publish.yml | 45 ++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7de94642..dccb89ec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -51,28 +51,29 @@ jobs: npm run prepare npm publish --access public --provenance - notify: - name: Notify Slack - needs: build - # Release context is only available when triggered by a release (not workflow_dispatch) - if: github.event_name == 'release' - runs-on: ubuntu-latest + # Disable - wrong params - may use a mobile dedicated custom webhook + # notify: + # name: Notify Slack + # needs: build + # # Release context is only available when triggered by a release (not workflow_dispatch) + # if: github.event_name == 'release' + # runs-on: ubuntu-latest - steps: - - name: Send release announcement to Slack - env: - SLACK_WEBHOOK: ${{ secrets.RELEASES_SLACK_WEBHOOK }} - RELEASE_TAG: ${{ github.event.release.tag_name }} - RELEASE_BODY: ${{ github.event.release.body }} - RELEASE_URL: ${{ github.event.release.html_url }} - run: | - # Extract the changelog from the release body: - # drop the "More info" trailer and the leading "- " list markers. - # Trailing blank lines are stripped by the command substitution. - changelog=$(printf '%s\n' "$RELEASE_BODY" | tr -d '\r' | sed -e '/^More info:/,$d' -e 's/^- //') + # steps: + # - name: Send release announcement to Slack + # env: + # SLACK_WEBHOOK: ${{ secrets.RELEASES_SLACK_WEBHOOK }} + # RELEASE_TAG: ${{ github.event.release.tag_name }} + # RELEASE_BODY: ${{ github.event.release.body }} + # RELEASE_URL: ${{ github.event.release.html_url }} + # run: | + # # Extract the changelog from the release body: + # # drop the "More info" trailer and the leading "- " list markers. + # # Trailing blank lines are stripped by the command substitution. + # changelog=$(printf '%s\n' "$RELEASE_BODY" | tr -d '\r' | sed -e '/^More info:/,$d' -e 's/^- //') - text=$(printf '*React-Native SDK version `%s`* is now available :rocket:\n```%s```\nhttps://www.npmjs.com/package/@didomi/react-native/v/%s\n%s' \ - "$RELEASE_TAG" "$changelog" "$RELEASE_TAG" "$RELEASE_URL") + # text=$(printf '*React-Native SDK version `%s`* is now available :rocket:\n```%s```\nhttps://www.npmjs.com/package/@didomi/react-native/v/%s\n%s' \ + # "$RELEASE_TAG" "$changelog" "$RELEASE_TAG" "$RELEASE_URL") - jq -n --arg text "$text" '{ text: $text }' \ - | curl --silent --show-error --fail -X POST -H 'Content-Type: application/json' -d @- "$SLACK_WEBHOOK" + # jq -n --arg text "$text" '{ text: $text }' \ + # | curl --silent --show-error --fail -X POST -H 'Content-Type: application/json' -d @- "$SLACK_WEBHOOK"