Skip to content

Commit e5b0402

Browse files
authored
Remove comments inside JSON block (#437)
1 parent 95bb141 commit e5b0402

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python-project-template/.github/workflows/smoke-test.yml.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ jobs:
7878
{%- if 'slack' in failure_notification %}
7979
{%- raw %}
8080
- name: Send status to Slack app
81-
if: ${{ failure() && github.event_name != 'workflow_dispatch' }} # Only post if the workflow failed and was not manually started. Customize this as necessary.
81+
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
8282
id: slack
8383
uses: slackapi/slack-github-action@v1
8484
with:
8585
# For posting a rich message using Block Kit
86-
payload: | # The payload defined here can be customized to you liking https://api.slack.com/reference/block-kit/blocks
86+
payload: |
8787
{
8888
"blocks": [
8989
{
@@ -97,7 +97,7 @@ jobs:
9797
"type": "section",
9898
"text": {
9999
"type": "mrkdwn",
100-
"text": "GitHub Action build result: *${{ job.status }}* :${{ job.status }}:" # Note that we expect the slack workspace to have an emoji called “failed” in this case.
100+
"text": "GitHub Action build result: *${{ job.status }}* :${{ job.status }}:"
101101
}
102102
},
103103
{
@@ -113,7 +113,7 @@ jobs:
113113
]
114114
}
115115
env:
116-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # Here is where the webhook URL is provided
116+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
117117
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
118118
{%- endraw %}
119119
{%- endif %}

0 commit comments

Comments
 (0)