From d67733cedc23a6abd915e590da40896a5439250d Mon Sep 17 00:00:00 2001 From: andriikamaldinov1 Date: Fri, 25 Oct 2024 17:18:10 +0300 Subject: [PATCH] feat(ref: #132): fix publish actions --- .github/workflows/publish.yml | 86 +++++++++++++++++------------------ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5e87e73..7f74519 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,48 +29,48 @@ jobs: NODE_AUTH_TOKEN: ${{secrets.npm_token}} slack_notification: - needs: - - build - runs-on: ubuntu-latest - steps: - - name: Post to a Slack channel - id: slack - uses: slackapi/slack-github-action@v1.27.0 - with: - channel-id: 'deployments' - payload: | + needs: + - build + runs-on: ubuntu-latest + steps: + - name: Post to a Slack channel + id: slack + uses: slackapi/slack-github-action@v1.27.0 + with: + channel-id: 'deployments' + payload: | + { + "text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}" + } + }, { - "text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "GitHub Action build result: ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Project: `${{ github.event.repository.name }}`" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Commit/PR URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Website URL: ${{ env.NPM_PACKAGE_URL }}" - } - } - ] + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Project: `${{ github.event.repository.name }}`" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Commit/PR URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Website URL: ${{ env.NPM_PACKAGE_URL }}" + } } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}