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

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

Open
Patlatus opened this issue Jan 16, 2025 · 1 comment
Open

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

Patlatus opened this issue Jan 16, 2025 · 1 comment

Comments

@Patlatus
Copy link

I used version archive/github-actions-slack@v1.0.3 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?

@archive
Copy link
Owner

archive commented Jan 19, 2025

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

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

No branches or pull requests

2 participants