[Components] openum (#20158) #9835
This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'components/**' | |
| jobs: | |
| publish-components: | |
| name: Publish Marketplace Content to Pipedream | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4.2.0 | |
| with: | |
| version: 10.28.2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Get Changed Files | |
| id: files | |
| uses: Ana06/get-changed-files@v2.3.0 | |
| with: | |
| format: 'csv' | |
| - name: Publish changes to marketplace content | |
| id: publish | |
| env: | |
| PD_API_KEY: ${{ secrets.PD_API_KEY }} | |
| ENDPOINT: ${{ secrets.ENDPOINT }} | |
| shell: bash {0} # don't fast fail | |
| run: | | |
| printf -v added_modified_renamed_files '%s,%s' '${{ steps.files.outputs.added_modified }}' '${{ steps.files.outputs.renamed }}' | |
| pnpm dlx tsx scripts/updateMarketplaceReadme.mts $added_modified_renamed_files |