-
Notifications
You must be signed in to change notification settings - Fork 154
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
Example code misnamed #361
Comments
Hey @rdavison 👋 Thanks for catching this - the filenaming might've been missed with recent changes here 😅 We'll update these examples and related documentation super soon to make sure examples like this are clear! 📚 |
As a quick reference, this example can be written with JSON like so: on: [push]
jobs:
new_push_job:
runs-on: ubuntu-latest
name: New push to repo
steps:
- name: Send GitHub trigger payload to Slack Workflow Builder
id: slack
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
{
"key": "value",
"foo": "bar"
} |
👋 Thanks again for sharing this finding! The example workflows were revamped with other changes, so I think we can close this now. Please do feel free to write in with other strangnesses noticed though! This is always appreciated 🙏 |
Description
Several examples in the example code have JSON in the filename, but the payload content is actually YAML.
The text was updated successfully, but these errors were encountered: