Skip to content

Commit

Permalink
Switch to pulumi's schema-tools (#913)
Browse files Browse the repository at this point in the history
* Switch to pulumi's schema-tools

* Remove duplicate title
  • Loading branch information
iwahbe committed Jul 20, 2023
1 parent cfd53ea commit 124d255
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
name: Install Schema Tools
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: mikhailshilkov/schema-tools
repo: pulumi/schema-tools
- name: Initialize submodules
run: make init_submodules
- name: Build codegen binaries
Expand All @@ -79,16 +79,14 @@ jobs:
run: >-
echo 'SCHEMA_CHANGES<<EOF' >> $GITHUB_ENV
schema-tools compare ${{ env.PROVIDER }} master --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
schema-tools compare -p ${{ env.PROVIDER }} -o master -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- if: github.event_name == 'pull_request'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@v1
with:
message: |
### Does the PR have any schema changes?
${{ env.SCHEMA_CHANGES }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: contains(env.SCHEMA_CHANGES, 'Looking good! No breaking changes found.') &&
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
name: Install Schema Tools
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: mikhailshilkov/schema-tools
repo: pulumi/schema-tools
- name: Initialize submodules
run: make init_submodules
- name: Build codegen binaries
Expand All @@ -71,16 +71,14 @@ jobs:
run: >-
echo 'SCHEMA_CHANGES<<EOF' >> $GITHUB_ENV
schema-tools compare ${{ env.PROVIDER }} master --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
schema-tools compare -p ${{ env.PROVIDER }} -o master -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- if: github.event_name == 'pull_request'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@v1
with:
message: |
### Does the PR have any schema changes?
${{ env.SCHEMA_CHANGES }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: contains(env.SCHEMA_CHANGES, 'Looking good! No breaking changes found.') &&
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
name: Install Schema Tools
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: mikhailshilkov/schema-tools
repo: pulumi/schema-tools
- name: Initialize submodules
run: make init_submodules
- name: Build codegen binaries
Expand All @@ -71,16 +71,14 @@ jobs:
run: >-
echo 'SCHEMA_CHANGES<<EOF' >> $GITHUB_ENV
schema-tools compare ${{ env.PROVIDER }} master --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
schema-tools compare -p ${{ env.PROVIDER }} -o master -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- if: github.event_name == 'pull_request'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@v1
with:
message: |
### Does the PR have any schema changes?
${{ env.SCHEMA_CHANGES }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: contains(env.SCHEMA_CHANGES, 'Looking good! No breaking changes found.') &&
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
name: Install Schema Tools
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: mikhailshilkov/schema-tools
repo: pulumi/schema-tools
- name: Initialize submodules
run: make init_submodules
- name: Build codegen binaries
Expand All @@ -95,16 +95,14 @@ jobs:
run: >-
echo 'SCHEMA_CHANGES<<EOF' >> $GITHUB_ENV
schema-tools compare ${{ env.PROVIDER }} master --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
schema-tools compare -p ${{ env.PROVIDER }} -o master -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- if: github.event_name == 'pull_request'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@v1
with:
message: |
### Does the PR have any schema changes?
${{ env.SCHEMA_CHANGES }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: contains(env.SCHEMA_CHANGES, 'Looking good! No breaking changes found.') &&
Expand Down

0 comments on commit 124d255

Please sign in to comment.