github-actions-slack icon indicating copy to clipboard operation
github-actions-slack copied to clipboard

Error: ["{}"] or "{}" when using this action

Open Patlatus opened this issue 1 year ago • 3 comments

I used version archive/[email protected] and it is not working.

Image

Tried to upgrade to archive/github-actions-slack@master

Image

I have very simple configuration and I don't understand why it doesn't work. I believe it used to work fine before

  - name: Send message to Slack API
    uses: archive/github-actions-slack@master
    with:
      slack-bot-user-oauth-access-token: ${{secrets.SLACK_BOT_OAUTH}}
      slack-channel: ${{secrets.SLACK_CHANNEL}}
      slack-text: ${{steps.apex.outputs.text}}
      slack-optional-icon_emoji: ":fire:"

what is wrong?

Patlatus avatar Jan 16 '25 11:01 Patlatus

Hi @Patlatus

First, have you enabled logging? https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging.

Secondly, please review this sample: https://github.com/archive/github-actions-slack/blob/master/.github/workflows/10-slack-fake-build-updates.yml. It simulate getting information from previous step and sending it to slack.

Image

archive avatar Jan 19 '25 12:01 archive

I am struggling to enable logging

Patlatus avatar Jan 20 '25 10:01 Patlatus

Whats the issue?

archive avatar Jan 23 '25 17:01 archive