Skip to content

Commit 5c0e952

Browse files
disable slack web hook (wrong params) (#187)
1 parent 58a18b5 commit 5c0e952

1 file changed

Lines changed: 23 additions & 22 deletions

File tree

.github/workflows/publish.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,29 @@ jobs:
5151
npm run prepare
5252
npm publish --access public --provenance
5353
54-
notify:
55-
name: Notify Slack
56-
needs: build
57-
# Release context is only available when triggered by a release (not workflow_dispatch)
58-
if: github.event_name == 'release'
59-
runs-on: ubuntu-latest
54+
# Disable - wrong params - may use a mobile dedicated custom webhook
55+
# notify:
56+
# name: Notify Slack
57+
# needs: build
58+
# # Release context is only available when triggered by a release (not workflow_dispatch)
59+
# if: github.event_name == 'release'
60+
# runs-on: ubuntu-latest
6061

61-
steps:
62-
- name: Send release announcement to Slack
63-
env:
64-
SLACK_WEBHOOK: ${{ secrets.RELEASES_SLACK_WEBHOOK }}
65-
RELEASE_TAG: ${{ github.event.release.tag_name }}
66-
RELEASE_BODY: ${{ github.event.release.body }}
67-
RELEASE_URL: ${{ github.event.release.html_url }}
68-
run: |
69-
# Extract the changelog from the release body:
70-
# drop the "More info" trailer and the leading "- " list markers.
71-
# Trailing blank lines are stripped by the command substitution.
72-
changelog=$(printf '%s\n' "$RELEASE_BODY" | tr -d '\r' | sed -e '/^More info:/,$d' -e 's/^- //')
62+
# steps:
63+
# - name: Send release announcement to Slack
64+
# env:
65+
# SLACK_WEBHOOK: ${{ secrets.RELEASES_SLACK_WEBHOOK }}
66+
# RELEASE_TAG: ${{ github.event.release.tag_name }}
67+
# RELEASE_BODY: ${{ github.event.release.body }}
68+
# RELEASE_URL: ${{ github.event.release.html_url }}
69+
# run: |
70+
# # Extract the changelog from the release body:
71+
# # drop the "More info" trailer and the leading "- " list markers.
72+
# # Trailing blank lines are stripped by the command substitution.
73+
# changelog=$(printf '%s\n' "$RELEASE_BODY" | tr -d '\r' | sed -e '/^More info:/,$d' -e 's/^- //')
7374

74-
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' \
75-
"$RELEASE_TAG" "$changelog" "$RELEASE_TAG" "$RELEASE_URL")
75+
# 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' \
76+
# "$RELEASE_TAG" "$changelog" "$RELEASE_TAG" "$RELEASE_URL")
7677

77-
jq -n --arg text "$text" '{ text: $text }' \
78-
| curl --silent --show-error --fail -X POST -H 'Content-Type: application/json' -d @- "$SLACK_WEBHOOK"
78+
# jq -n --arg text "$text" '{ text: $text }' \
79+
# | curl --silent --show-error --fail -X POST -H 'Content-Type: application/json' -d @- "$SLACK_WEBHOOK"

0 commit comments

Comments
 (0)