Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert various line breaks to the Slack's ones #9

Merged

Conversation

denis-trofimov
Copy link
Contributor

@denis-trofimov denis-trofimov commented May 24, 2023

ℹ️ About

I've tested my solution to #8.
Then I substitute LoveToKnow/slackify-markdown-action Slack API works.

   - id: convertTextSlackReady
     if: steps.install.outputs.error == 0 &&  steps.restore.outputs.error == 0
     uses: denis-trofimov/[email protected]
     with:
       text: ${{ steps.readyMessage.outputs.message }}

   - name: Slack links list
     if: steps.install.outputs.error == 0 &&  steps.restore.outputs.error == 0
     uses: slackapi/[email protected]
     with:
       channel-id: ${{ inputs.slack_channel_id }}
       payload: |
         {
           "text": "Your Huma server API is ready to use.",
           "blocks": [
             {
               "type": "section",
               "text": {
                 "type": "mrkdwn",
                 "text": "${{ steps.convertTextSlackReady.outputs.text }}"
               }
             }
           ]
         }
     env:
       SLACK_BOT_TOKEN: ${{ inputs.slack_bot_token }}

  • Has 🧪 tests
  • Has 📖 documentation

@denis-trofimov denis-trofimov changed the title Convert the line breaks to Slack \n Convert the Linux line breaks to the Slack's ones Jul 25, 2023
@denis-trofimov denis-trofimov changed the title Convert the Linux line breaks to the Slack's ones Convert various line breaks to the Slack's ones Jul 25, 2023
@JoshCoady JoshCoady merged commit 7752eae into LoveToKnow:master Aug 30, 2023
JoshCoady added a commit that referenced this pull request Aug 30, 2023
JoshCoady added a commit that referenced this pull request Aug 30, 2023
@github-actions
Copy link

🎉 This PR is included in version 1.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants