Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup publish-provider-update.yml #6096

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/publish-provider-update.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
PROVIDER_CATEGORY: ${{ github.event.client_payload.category }}
PROVIDER_DISPLAY_NAME: ${{ github.event.client_payload.display-name }}
PROVIDER_IS_COMPONENT: false
PROVIDER_NAME: ${{ github.event.client_payload.project }}
PROVIDER_SCHEMA_PATH: ${{ github.event.client_payload.schema-path }}
PROVIDER_SHORT_NAME: ${{ github.event.client_payload.project-shortname }}
PROVIDER_PUBLISHER_NAME: ${{ github.event.client_payload.publisher }}
PROVIDER_VERSION: ${{ github.event.client_payload.ref }}

name: provider docs build
Expand All @@ -19,14 +14,19 @@ jobs:
build-resource-provider-docs:
runs-on: ubuntu-latest
steps:
- run: echo "Building ${{ env.PROVIDER_NAME }} docs @ ${{ env.PROVIDER_VERSION }}"
- run: echo "Building ${{ env.PROVIDER_SHORT_NAME }} docs @ ${{ env.PROVIDER_VERSION }}"
- name: checkout registry repo
uses: actions/checkout@v4
- name: Build resourcedocsgen
run: go build -C tools/resourcedocsgen
- name: Generate Package Metadata
run: |
go build -C tools/resourcedocsgen
./tools/resourcedocsgen/resourcedocsgen \
metadata --providerName=${{ env.PROVIDER_SHORT_NAME }} --repoSlug pulumi/pulumi-${{ env.PROVIDER_SHORT_NAME }} --schemaFile="${{ env.PROVIDER_SCHEMA_PATH }}" --version="${{ env.PROVIDER_VERSION }}" --publisher Pulumi
run: >-
./tools/resourcedocsgen/resourcedocsgen metadata
--providerName=${{ env.PROVIDER_SHORT_NAME }}
--repoSlug pulumi/pulumi-${{ env.PROVIDER_SHORT_NAME }}
--schemaFile="${{ env.PROVIDER_SCHEMA_PATH }}"
--version="${{ env.PROVIDER_VERSION }}"
--publisher Pulumi
- name: git status
run: git status && git diff
- name: Create registry PR
Expand Down
Loading