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

Channel configuration broken? #253

Open
Hurtak opened this issue Feb 15, 2024 · 0 comments
Open

Channel configuration broken? #253

Hurtak opened this issue Feb 15, 2024 · 0 comments

Comments

@Hurtak
Copy link

Hurtak commented Feb 15, 2024

Describe the bug
The channel property seems to not work, it always sends the message to default channel. I tried putting there channel id and channel name (both with and without #) and with the same result - the job succeeds but the message gets sent to default channel

This is our CI step

  send_slack_notification:
    needs: check_company
    runs-on: ubuntu-latest
    if: always()
    steps:
      - name: Send to Slack
        uses: 8398a7/action-slack@v3
        with:
          channel: "CHANNEL_ID"
          status: "${{ needs.check_company.result }}"
          text: "e2e daily tests status: ${{ needs.check_company.result }}"
          fields: workflowRun
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

Is there some special additional configuration that should be needed?

Also, the documentation seems to conflict itself, one part of the docs says you should put ID, but 2nd part of the docs use the channel name

Screenshot 2024-02-15 at 10 48 01
Screenshot 2024-02-15 at 10 48 10

Also, shouldn't send to slack job fail in case of incorrectly setup channel property? Instead of succeeding and sending to default channel?

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

1 participant