We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Action fails silently if SLACK_BOT_TOKEN is not set
x
[ ]
Filling out the following details about bugs will help us solve your issue sooner.
package version: 1.15.0
node version: I don't think you should ask that, as it's configured in your own action.yml
OS version(s): ubuntu-latest
env: SLACK_BOT_TOKEN: ${{ secrets.DOES_NOT_EXIST }}
Should error with a helpful message
No output, success status
The text was updated successfully, but these errors were encountered:
Thanks again. As with #9, the error can be improved by having some validation as part of the action.
Sorry, something went wrong.
@v2
With the @v2.0.0 release a step will now exit with an error if no token is included, so be sure to include a token 👻
@v2.0.0
token
- name: Post to a Slack channel uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} # Here's the aforementioned token payload: | channel: ${{ secrets.SLACK_CHANNEL_ID }} text: "howdy <@channel>!"
Going to close this issue with this latest release, but if this step isn't causing errors please feel free to comment or open another issue! 🙏
Agh, meant to keep this tagged to 1.x where the issue is present! 😅
1.x
Successfully merging a pull request may close this issue.
Description
Action fails silently if SLACK_BOT_TOKEN is not set
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 1.15.0
node version: I don't think you should ask that, as it's configured in your own action.yml
OS version(s): ubuntu-latest
Steps to reproduce:
Expected result:
Should error with a helpful message
Actual result:
No output, success status
Attachments:
The text was updated successfully, but these errors were encountered: