diff --git a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml index 947107a00..b33693056 100644 --- a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml +++ b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml @@ -21,16 +21,18 @@ jobs: needs: tag_sdk runs-on: #{{ .Config.runner.default }}# steps: - - name: Install pulumictl - uses: #{{ .Config.actionVersions.installGhRelease }}# - with: - tag: #{{ .Config.actionVersions.pulumictlTag }}# - repo: pulumi/pulumictl - - env: - GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - name: Dispatch Event - run: pulumictl create docs-build pulumi-#{{ .Config.provider }}# - "${GITHUB_REF#refs/tags/}" + - name: Dispatch Metadata build + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PULUMI_BOT_TOKEN }} + repository: pulumi/registry + event-type: resource-provider + client-payload: |- + { + "project": "${{ github.repository }}", + "project-shortname": "#{{ .Config.provider }}#", + "ref": "${{ github.ref_name }}" + } #{{ end -}}# #{{ if .Config.lint -}}# lint: diff --git a/provider-ci/test-workflows/aws/.github/workflows/release.yml b/provider-ci/test-workflows/aws/.github/workflows/release.yml index 03e51348b..dbf39feb6 100644 --- a/provider-ci/test-workflows/aws/.github/workflows/release.yml +++ b/provider-ci/test-workflows/aws/.github/workflows/release.yml @@ -133,16 +133,18 @@ jobs: needs: tag_sdk runs-on: ubuntu-latest steps: - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - env: - GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - name: Dispatch Event - run: pulumictl create docs-build pulumi-aws - "${GITHUB_REF#refs/tags/}" + - name: Dispatch Metadata build + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PULUMI_BOT_TOKEN }} + repository: pulumi/registry + event-type: resource-provider + client-payload: |- + { + "project": "${{ github.repository }}", + "project-shortname": "aws", + "ref": "${{ github.ref_name }}" + } license_check: name: License Check uses: ./.github/workflows/license.yml diff --git a/provider-ci/test-workflows/cloudflare/.github/workflows/release.yml b/provider-ci/test-workflows/cloudflare/.github/workflows/release.yml index 987a64660..c41f1f0fc 100644 --- a/provider-ci/test-workflows/cloudflare/.github/workflows/release.yml +++ b/provider-ci/test-workflows/cloudflare/.github/workflows/release.yml @@ -131,16 +131,18 @@ jobs: needs: tag_sdk runs-on: ubuntu-latest steps: - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - env: - GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - name: Dispatch Event - run: pulumictl create docs-build pulumi-cloudflare - "${GITHUB_REF#refs/tags/}" + - name: Dispatch Metadata build + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PULUMI_BOT_TOKEN }} + repository: pulumi/registry + event-type: resource-provider + client-payload: |- + { + "project": "${{ github.repository }}", + "project-shortname": "cloudflare", + "ref": "${{ github.ref_name }}" + } lint: name: lint uses: ./.github/workflows/lint.yml diff --git a/provider-ci/test-workflows/docker/.github/workflows/release.yml b/provider-ci/test-workflows/docker/.github/workflows/release.yml index 9f0c6cb84..c5dfd9966 100644 --- a/provider-ci/test-workflows/docker/.github/workflows/release.yml +++ b/provider-ci/test-workflows/docker/.github/workflows/release.yml @@ -144,16 +144,18 @@ jobs: needs: tag_sdk runs-on: ubuntu-latest steps: - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - env: - GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - name: Dispatch Event - run: pulumictl create docs-build pulumi-docker - "${GITHUB_REF#refs/tags/}" + - name: Dispatch Metadata build + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PULUMI_BOT_TOKEN }} + repository: pulumi/registry + event-type: resource-provider + client-payload: |- + { + "project": "${{ github.repository }}", + "project-shortname": "docker", + "ref": "${{ github.ref_name }}" + } lint: name: lint uses: ./.github/workflows/lint.yml