From 60a7b7efa98babe896b6cb3430a06ae8bff3f00f Mon Sep 17 00:00:00 2001 From: Andrii Kamaldinov <129040945+andriikamaldinov1@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:22:48 +0300 Subject: [PATCH] feat(ref: #132): fix publish actions * feat(ref: #132): fix publish actions * feat(ref: #132): fix publish actions --- .github/workflows/publish.yml | 88 +++++++++++++++++------------------ 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6ad02e5..7f74519 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,49 +28,49 @@ jobs: env: 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: | + 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: | + { + "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 }}