Update the webhooks format description #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
warn_codegen: | |
name: warn_codegen | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- id: schema_changed | |
name: Check for diff in schema | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: "changed: 'provider/cmd/**/schema.json'" | |
- id: sdk_changed | |
if: steps.schema_changed.outputs.changed == 'false' | |
name: Check for diff in sdk/* | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: "changed: 'sdk/*'" | |
- if: steps.sdk_changed.outputs.changed == 'true' | |
name: Send codegen warning as comment on PR | |
uses: thollander/actions-comment-pull-request@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
message: > | |
Hello and thank you for your pull request! :heart: :sparkles: | |
It looks like you're directly modifying files in the language SDKs, many of which are autogenerated. | |
Be sure any files you're editing do not begin with a code generation warning. | |
name: warn-codegen | |
on: | |
pull_request_target: | |
branches: | |
- main | |
- master | |
types: | |
- opened |