This commit is contained in:
Bryce Lampe
2025-08-07 10:53:41 -07:00
parent 3bca7cb8c7
commit 52f62c4608

View File

@@ -71,6 +71,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: prerequisites name: prerequisites
steps: steps:
- name: Testing duplicate JSON key behavior
shell: bash
run: |
export JSON='{"FOO": "BAR", "FOO": "BAZ"}'
echo ${{ fromJSON($JSON) }}
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with: with:
@@ -122,7 +128,8 @@ jobs:
${{ env.SCHEMA_CHANGES }} ${{ env.SCHEMA_CHANGES }}
comment-tag: schemaCheck comment-tag: schemaCheck
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
- if: contains(env.SCHEMA_CHANGES, 'Looking good! No breaking changes found.') && - if:
contains(env.SCHEMA_CHANGES, 'Looking good! No breaking changes found.') &&
github.actor == 'pulumi-bot' github.actor == 'pulumi-bot'
name: Add label if no breaking changes name: Add label if no breaking changes
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3 uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3
@@ -284,7 +291,8 @@ jobs:
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{
github.workspace}}/bin github.workspace}}/bin
- name: Restore Binary Permissions - name: Restore Binary Permissions
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print run:
find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \; -exec chmod +x {} \;
- name: Generate SDK - name: Generate SDK
run: make generate_${{ matrix.language }} run: make generate_${{ matrix.language }}
@@ -439,7 +447,8 @@ jobs:
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{
github.workspace}}/bin github.workspace}}/bin
- name: Restore Binary Permissions - name: Restore Binary Permissions
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print run:
find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \; -exec chmod +x {} \;
- name: Download SDK - name: Download SDK
if: ${{ matrix.language != 'yaml' }} if: ${{ matrix.language != 'yaml' }}
@@ -449,7 +458,8 @@ jobs:
path: ${{ github.workspace}}/sdk/ path: ${{ github.workspace}}/sdk/
- name: UnTar SDK folder - name: UnTar SDK folder
if: ${{ matrix.language != 'yaml' }} if: ${{ matrix.language != 'yaml' }}
run: tar -zxf ${{ github.workspace}}/sdk/${{ matrix.language}}.tar.gz -C ${{ run:
tar -zxf ${{ github.workspace}}/sdk/${{ matrix.language}}.tar.gz -C ${{
github.workspace}}/sdk/${{ matrix.language}} github.workspace}}/sdk/${{ matrix.language}}
- name: Update path - name: Update path
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"