freemium-survey-components 2.0.438 → 2.0.439

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -278,3 +278,14 @@ jobs:
278
278
  echo "GitHub release created!"
279
279
  env:
280
280
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
281
+
282
+ - name: Notify Slack channel
283
+ if: steps.check_version.outputs.is_version_bump == 'true'
284
+ run: |
285
+ RELEASE_URL="https://github.com/${{ github.repository }}/releases/tag/${{ steps.check_version.outputs.version }}"
286
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
287
+ MESSAGE=":tada: *New Release Published!* \nPackage: *${PACKAGE_NAME}* \nVersion: *${{ steps.check_version.outputs.version }}* \nReleased by: @${{ github.actor }} \n<${RELEASE_URL}|View Release Notes>"
288
+ curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"$MESSAGE\"}" "${{ secrets.SLACK_WEBHOOK_URL }}"
289
+ echo "Slack notification sent!"
290
+ env:
291
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}