File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 2727 - run : npm install
2828 - run : npm publish --access public
2929 env :
30- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
30+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
31+
32+ - name : Send custom JSON data to Slack workflow
33+ id : slack
34+ 35+ with :
36+ # For posting a rich message using Block Kit
37+ payload : |
38+ {
39+ "text": "GitHub Action build result for SmartUI-StoryBook: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
40+ "blocks": [
41+ {
42+ "type": "section",
43+ "text": {
44+ "type": "mrkdwn",
45+ "text": "`SmartUI-StoryBook-NPM-Package` GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
46+ }
47+ }
48+ ]
49+ }
50+ env :
51+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
52+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
You can’t perform that action at this time.
0 commit comments