-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Update GitHub Actions workflow files (#161)
- Loading branch information
1 parent
c1f9f1c
commit 2a11c30
Showing
14 changed files
with
260 additions
and
165 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ jobs: | |
age: 1 month | ||
skip-tags: true | ||
name: cleanup | ||
"on": | ||
on: | ||
schedule: | ||
- cron: 0 1 * * * |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
warn_codegen: | ||
name: warn_codegen | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- 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. | ||
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 | ||
- master | ||
types: | ||
- opened |
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
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
Oops, something went wrong.