Skip to content

Commit

Permalink
fix(ci): update example-previews-comment matrix references
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed May 30, 2024
1 parent 677e69b commit e2320e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/example-previews-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

deploy_example_preview:
needs: build_previews_matrix
if: needs.build_previews_matrix.outputs.matrix != '[]'
if: ${{ fromJson(needs.build_previews_matrix.outputs.matrix).include }}
permissions:
pull-requests: read
issues: read
Expand All @@ -61,18 +61,18 @@ jobs:
- name: Install Dependencies
run: pnpm install --ignore-scripts
- name: Build example
run: pnpm build --scope ${{ fromJson(matrix.example).name }}
run: pnpm build --scope ${{ matrix.name }}
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: ${{ fromJson(matrix.example).publish_dir }}
publish-dir: ${{ matrix.publish_dir }}
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "[Comment] Deploy from GitHub Actions"
alias: deploy-preview-${{ fromJson(matrix.example).name }}-${{ github.event.comment.node_id }}
alias: deploy-preview-${{ matrix.name }}-${{ github.event.comment.node_id }}
enable-pull-request-comment: true
overwrites-pull-request-comment: true
github-deployment-environment: "deploy-preview-${{ fromJson(matrix.example).name }}-${{ github.event.comment.node_id }}"
netlify-config-path: ${{ fromJson(matrix.example).netlify_config_path }}
github-deployment-environment: "deploy-preview-${{ matrix.name }}-${{ github.event.comment.node_id }}"
netlify-config-path: ${{ matrix.netlify_config_path }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand Down

0 comments on commit e2320e1

Please sign in to comment.