diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f49fa82d..1dd1ad7b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,10 +17,6 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - notify: - runs-on: ubuntu-latest - needs: build - steps: - name: Send success message to Slack env: SLACK_CHANNEL: "#serverless-onboarding-and-enablement-ops" @@ -41,8 +37,9 @@ jobs: if: failure() run: | set -x - OPS_MESSAGE=":gh-check-passed: serverless-plugin-datadog NPM publish failed! + OPS_MESSAGE=":gh-check-failed: serverless-plugin-datadog NPM publish failed! Please check GitHub Action log: https://github.com/DataDog/serverless-plugin-datadog/actions/workflows/publish.yml" curl -H "Content-type: application/json" -X POST "$SLACK_WEBHOOK" -d '{ "channel": "'"$SLACK_CHANNEL"'", "text": "'"$OPS_MESSAGE"'" + }'