From 3b76f3d5e573b8dd02dccd049553fd60b8b88a5d Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Thu, 7 Aug 2025 11:04:30 -0700 Subject: [PATCH] nope use this one --- .github/workflows/community-moderation.yml | 67 +++++++++------------- .github/workflows/run-acceptance-tests.yml | 11 ++++ 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/community-moderation.yml b/.github/workflows/community-moderation.yml index 80d3385..a925444 100644 --- a/.github/workflows/community-moderation.yml +++ b/.github/workflows/community-moderation.yml @@ -7,50 +7,39 @@ jobs: name: warn_codegen runs-on: ubuntu-latest steps: - - name: fromJSON operates on outputs - id: setup - shell: bash - run: | - echo 'JSON={"FOO": "BAR", "FOO": "BAZ"}' >> "GITHUB_OUTPUT" + - name: Checkout Repo + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + 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: - - name: Testing duplicate JSON key behavior - shell: bash - run: | - echo ${{ fromJSON(steps.setup.outputs.JSON) }} + It looks like you're directly modifying files in the language SDKs, many of which are autogenerated. - - name: Checkout Repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 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: + Be sure any files you're editing do not begin with a code generation warning. - 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). + 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 + - main types: - - opened + - opened diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index e15b1ec..e32a8cc 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -71,6 +71,17 @@ jobs: runs-on: ubuntu-latest name: prerequisites steps: + - name: fromJSON operates on outputs + id: setup + shell: bash + run: | + echo 'JSON={"FOO": "BAR", "FOO": "BAZ"}' >> "GITHUB_OUTPUT" + + - name: Testing duplicate JSON key behavior + shell: bash + run: | + echo ${{ fromJSON(steps.setup.outputs.JSON) }} + - name: Checkout Repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: