This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 02f02bb0bfe879d167ed8f335b4950208454bafb. --------- Co-authored-by: Pulumi Bot <bot@pulumi.com> Co-authored-by: Bryce Lampe <bryce@pulumi.com>
44 lines
1.7 KiB
YAML
44 lines
1.7 KiB
YAML
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
|
|
|
|
jobs:
|
|
warn_codegen:
|
|
name: warn_codegen
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- id: schema_changed
|
|
name: Check for diff in schema
|
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
|
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@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
|
with:
|
|
filters: "changed: 'sdk/**'"
|
|
- if: steps.sdk_changed.outputs.changed == 'true' &&
|
|
github.event.pull_request.head.repo.full_name != github.repository
|
|
name: Send codegen warning as comment on PR
|
|
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
|
|
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.
|
|
|
|
For generated files, you will need to make changes in `resources.go` instead, and [generate the code](https://github.com/pulumi/${{ github.event.repository.name }}/blob/master/CONTRIBUTING.md#committing-generated-code).
|
|
name: warn-codegen
|
|
on:
|
|
pull_request_target:
|
|
branches:
|
|
- main
|
|
types:
|
|
- opened
|