From 35b3926b950caeb3bd482717ee3c0a51a0ce2b2b Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 15:58:12 +0300 Subject: [PATCH 1/9] fix: trim comment body in deploy-previews script --- .github/workflows/scripts/deploy-previews.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scripts/deploy-previews.js b/.github/workflows/scripts/deploy-previews.js index c897f65103e5..f0badd91ce2c 100644 --- a/.github/workflows/scripts/deploy-previews.js +++ b/.github/workflows/scripts/deploy-previews.js @@ -58,4 +58,4 @@ const buildExamplesOutput = (comment) => { setOutput(JSON.stringify(output)); }; -buildExamplesOutput(COMMENT_BODY); +buildExamplesOutput(COMMENT_BODY.trim()); From 6f0906be99b66da5b9debdf4fb5f0a83a3b9e9d7 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 15:58:43 +0300 Subject: [PATCH 2/9] feat(ci): add example-previews-comment workflow --- .../workflows/example-previews-comment.yml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/example-previews-comment.yml diff --git a/.github/workflows/example-previews-comment.yml b/.github/workflows/example-previews-comment.yml new file mode 100644 index 000000000000..7a35fac29cf3 --- /dev/null +++ b/.github/workflows/example-previews-comment.yml @@ -0,0 +1,80 @@ +name: Deploy Example Previews + +on: + issue_comment: + types: [created] + +jobs: + build_previews_matrix: + name: Build previews matrix + permissions: + pull-requests: read + issues: read + outputs: + matrix: ${{ steps.build_examples_matrix.outputs.EXAMPLES }} + pr_ref: ${{ fromJson(steps.request.outputs.data).head.ref }} + runs-on: ubuntu-latest + if: ${{ contains(github.event.comment.body, '/deploy') }} + steps: + - uses: peter-evans/create-or-update-comment@v4 + with: + comment-id: ${{ github.event.comment.id }} + reactions: | + "+1" + "rocket" + - name: Github API Request + id: request + uses: octokit/request-action@v2.0.2 + with: + route: ${{ github.event.issue.pull_request.url }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v4 + with: + ref: ${{ fromJson(steps.request.outputs.data).head.ref }} + - name: Build examples matrix + id: build_examples_matrix + run: node ./.github/workflows/scripts/deploy-previews.js + env: + COMMENT_BODY: '${{ github.event.comment.body }}' + + deploy_example_preview: + needs: build_previews_matrix + if: needs.build_previews_matrix.outputs.matrix != '[]' + permissions: + pull-requests: read + issues: read + strategy: + matrix: + example: ${{ fromJson(needs.build_previews_matrix.outputs.matrix) }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ needs.build_previews_matrix.outputs.pr_ref }} + - uses: pnpm/action-setup@v3 + with: + version: 9 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "pnpm" + - name: Install Dependencies + run: pnpm install --ignore-scripts + - name: Build example + run: pnpm build --scope ${{ matrix.example.name }} + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v3.0 + with: + publish-dir: ${{ matrix.example.publish_dir }} + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "[Comment] Deploy from GitHub Actions" + alias: deploy-preview-${{ matrix.example.name }}-${{ github.event.comment.node_id }} + enable-pull-request-comment: true + overwrites-pull-request-comment: true + github-deployment-environment: "deploy-preview-${{ matrix.example.name }}-${{ github.event.comment.node_id }}" + netlify-config-path: ${{ matrix.example.netlify_config_path }} + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + timeout-minutes: 10 From ebd4efb8a24eec67efa8659f631bc993feb16c4f Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 15:58:58 +0300 Subject: [PATCH 3/9] feat(ci): add example-previews-dispatch workflow --- .../workflows/example-previews-dispatch.yml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/example-previews-dispatch.yml diff --git a/.github/workflows/example-previews-dispatch.yml b/.github/workflows/example-previews-dispatch.yml new file mode 100644 index 000000000000..8d9e79a6ba2b --- /dev/null +++ b/.github/workflows/example-previews-dispatch.yml @@ -0,0 +1,48 @@ +name: Deploy Example Previews + +on: + workflow_dispatch: + inputs: + example_name: + description: "Example name to deploy preview" + type: choice + required: true + options: + - finefoods-antd + - finefoods-client + - finefoods-material-ui + - app-crm + - pixels + - invoicer + +jobs: + deploy_preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + with: + version: 9 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "pnpm" + - name: Install Dependencies + run: pnpm install --ignore-scripts + - name: Build example + run: pnpm build --scope ${{ inputs.example_name }} + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v3.0 + with: + publish-dir: ${{ format('./examples/{0}/{1}', inputs.example_name, contains(fromJson('["finefoods-client"]'), inputs.example_name) && '.next' || 'dist') }} + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deploy from GitHub Actions" + alias: deploy-preview-dispatch-${{ inputs.example_name }}-${{ github.ref_name }} + enable-pull-request-comment: false + overwrites-pull-request-comment: false + github-deployment-environment: "deploy-preview-dispatch-${{ inputs.example_name }}-${{ github.ref_name }}" + netlify-config-path: ./examples/${{ inputs.example_name }}/netlify.toml + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + timeout-minutes: 10 From 8dc6d7fd3e09cda66c68b527e2327cf91f7eace1 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 15:59:25 +0300 Subject: [PATCH 4/9] feat(ci): add example-previews-master workflow --- .github/workflows/example-previews-master.yml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/example-previews-master.yml diff --git a/.github/workflows/example-previews-master.yml b/.github/workflows/example-previews-master.yml new file mode 100644 index 000000000000..8d5f8236b177 --- /dev/null +++ b/.github/workflows/example-previews-master.yml @@ -0,0 +1,72 @@ +name: Deploy Example Previews + +on: + push: + paths: + - "packages/**" + - "examples/finefoods-antd/**" + - "examples/finefoods-client/**" + - "examples/finefoods-material-ui/**" + - "examples/app-crm/**" + - "examples/pixels/**" + - "examples/invoicer/**" + branches: + - master + +jobs: + changes: + runs-on: ubuntu-latest + permissions: + pull-requests: read + outputs: + examples: ${{ steps.filter.outputs.changes }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + 'finefoods-antd': 'examples/finefoods-antd/**' + 'finefoods-client': 'examples/finefoods-client/**' + 'finefoods-material-ui': 'examples/finefoods-material-ui/**' + 'app-crm': 'examples/app-crm/**' + 'pixels': 'examples/pixels/**' + 'invoicer': 'examples/invoicer/**' + + deploy_example_preview: + needs: changes + runs-on: ubuntu-latest + permissions: + pull-requests: read + strategy: + matrix: + example: ${{ fromJson(needs.changes.outputs.examples) }} + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + with: + version: 9 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "pnpm" + - name: Install Dependencies + run: pnpm install --ignore-scripts + - name: Build example + run: pnpm build --scope ${{ matrix.example }} + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v3.0 + with: + publish-dir: ${{ matrix.example }} + production-branch: master + production-deploy: true + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "[Master] Deploy from GitHub Actions" + enable-pull-request-comment: false + enable-commit-comment: false + overwrites-pull-request-comment: false + netlify-config-path: "./examples/${{ matrix.example }}/netlify.toml" + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + timeout-minutes: 10 From 2cf9a253410681819958f657374cd5b41ba229b5 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 15:59:38 +0300 Subject: [PATCH 5/9] feat(ci): add example-previews-pr workflow --- ...e-previews.yml => example-previews-pr.yml} | 94 ++++++------------- 1 file changed, 31 insertions(+), 63 deletions(-) rename .github/workflows/{example-previews.yml => example-previews-pr.yml} (58%) diff --git a/.github/workflows/example-previews.yml b/.github/workflows/example-previews-pr.yml similarity index 58% rename from .github/workflows/example-previews.yml rename to .github/workflows/example-previews-pr.yml index 08b4b9e74643..12ee6e4e5e90 100644 --- a/.github/workflows/example-previews.yml +++ b/.github/workflows/example-previews-pr.yml @@ -1,55 +1,39 @@ name: Deploy Example Previews on: - issue_comment: - types: [created] pull_request: paths: - - "packages/**" - - "examples/**" + - "examples/finefoods-antd/**" + - "examples/finefoods-client/**" + - "examples/finefoods-material-ui/**" + - "examples/app-crm/**" + - "examples/pixels/**" + - "examples/invoicer/**" types: - opened - synchronize - reopened - labeled - push: - branches: - - master - workflow_dispatch: - inputs: - example_name: - description: "Example name to deploy preview" - type: choice - required: true - options: - - finefoods-antd - - finefoods-client - - finefoods-material-ui - - app-crm - - pixels - - invoicer jobs: changes: runs-on: ubuntu-latest - # Required permissions permissions: pull-requests: read - # Set job outputs to values from filter step outputs: - examples: ${{ steps.filter.outputs.changes || false }} - all_examples: ${{ steps.deploy-previews-label.outputs.all_examples || false }} - dispatch_example: ${{ join(inputs.example_name) || false }} + examples: ${{ steps.filter.outputs.changes }} + all_examples: ${{ steps.deploy-previews-label.outputs.all_examples }} steps: - uses: actions/checkout@v4 - name: Get PR labels id: pr-labels uses: joerick/pr-labels-action@v1.0.9 - name: 'Check deploy previews label' + if: ${{ contains(steps.pr-labels.outputs.labels, ' deploy-previews ') }} id: deploy-previews-label run: echo 'all_examples=["finefoods-antd", "finefoods-client", "finefoods-material-ui", "app-crm", "pixels", "invoicer"]' >> $GITHUB_OUTPUT - if: ${{ contains(steps.pr-labels.outputs.labels, ' deploy-previews ') }} - uses: dorny/paths-filter@v3 + if: ${{ !contains(steps.pr-labels.outputs.labels, ' deploy-previews ') }} id: filter with: filters: | @@ -59,33 +43,16 @@ jobs: 'app-crm': 'examples/app-crm/**' 'pixels': 'examples/pixels/**' 'invoicer': 'examples/invoicer/**' - build_previews_matrix: - name: Build previews matrix - permissions: - pull-requests: read - issues: read - outputs: - matrix: ${{ steps.build_examples_matrix.outputs.EXAMPLES }} - runs-on: ubuntu-latest - if: ${{ contains(github.event.comment.body, '/deploy') }} - steps: - - uses: actions/checkout@v4 - - name: Build examples matrix - id: build_examples_matrix - run: node ./.github/workflows/scripts/deploy-previews.js - env: - COMMENT_BODY: '${{ github.event.comment.body }}' - deploy_example_preview: - needs: build_previews_matrix - if: needs.build_previews_matrix.outputs.matrix != '[]' - permissions: - pull-requests: read - issues: read + deploy_previews: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.examples }} strategy: + fail-fast: false + max-parallel: 6 matrix: - example: ${{ fromJson(needs.build_previews_matrix.outputs.matrix) }} - runs-on: ubuntu-latest + example: ${{ fromJSON(needs.changes.outputs.examples) }} steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3 @@ -98,31 +65,32 @@ jobs: - name: Install Dependencies run: pnpm install --ignore-scripts - name: Build example - run: pnpm build --scope ${{ matrix.example.name }} + run: pnpm build --scope ${{ matrix.example }} - name: Deploy to Netlify uses: nwtgck/actions-netlify@v3.0 with: - publish-dir: ${{ matrix.example.publish_dir }} + publish-dir: ${{ format('./examples/{0}/{1}', matrix.example, contains(fromJson('["finefoods-client"]'), matrix.example) && '.next' || 'dist') }} github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Deploy from GitHub Actions [Comment]" - alias: deploy-preview-${{ matrix.example.name }}-${{ github.event.comment.node_id }} + deploy-message: "Deploy from GitHub Actions" + alias: deploy-preview-${{ matrix.example }}-${{ github.ref_name }} enable-pull-request-comment: true overwrites-pull-request-comment: true - github-deployment-environment: "deploy-preview-${{ matrix.example.name }}-${{ github.event.comment.node_id }}" - netlify-config-path: ${{ matrix.example.netlify_config_path }} + github-deployment-environment: "deploy-preview-${{ matrix.example }}-${{ github.ref_name }}" + netlify-config-path: ./examples/${{ matrix.example }}/netlify.toml env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} timeout-minutes: 10 - preview: + + deploy_all_previews: runs-on: ubuntu-latest needs: changes - if: ${{ needs.changes.outputs.all_examples || needs.changes.outputs.examples || needs.changes.outputs.dispatch_example }} + if: ${{ needs.changes.outputs.all_examples }} strategy: fail-fast: false max-parallel: 6 matrix: - example: ${{ fromJSON(needs.changes.outputs.examples || needs.changes.outputs.all_examples || needs.changes.outputs.dispatch_example) }} + example: ${{ fromJSON(needs.changes.outputs.all_examples) }} steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3 @@ -142,10 +110,10 @@ jobs: publish-dir: ${{ format('./examples/{0}/{1}', matrix.example, contains(fromJson('["finefoods-client"]'), matrix.example) && '.next' || 'dist') }} github-token: ${{ secrets.GITHUB_TOKEN }} deploy-message: "Deploy from GitHub Actions" - alias: deploy-preview-${{ matrix.example }}-${{ github.event.number }} - enable-pull-request-comment: false - overwrites-pull-request-comment: false - github-deployment-environment: "deploy-preview-${{ matrix.example }}-${{ github.event.number }}" + alias: deploy-preview-${{ matrix.example }}-${{ github.ref_name }} + enable-pull-request-comment: true + overwrites-pull-request-comment: true + github-deployment-environment: "deploy-preview-${{ matrix.example }}-${{ github.ref_name }}" netlify-config-path: ./examples/${{ matrix.example }}/netlify.toml env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} From 422c2832de170e1d0e81cadac34000c9d9b5f9f0 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 16:25:37 +0300 Subject: [PATCH 6/9] feat(ci): whitelist comment deploy sites --- .github/workflows/scripts/deploy-previews.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/deploy-previews.js b/.github/workflows/scripts/deploy-previews.js index f0badd91ce2c..4d0e11959a53 100644 --- a/.github/workflows/scripts/deploy-previews.js +++ b/.github/workflows/scripts/deploy-previews.js @@ -4,6 +4,15 @@ const fs = require("fs"); const COMMENT_BODY = process.env.COMMENT_BODY || false; +const NETLIFY_SITES = [ + "finefoods-antd", + "finefoods-client", + "finefoods-material-ui", + "app-crm", + "pixels", + "invoicer", +]; + const setOutput = (output) => console.log(`::set-output name=EXAMPLES::${output}`); @@ -39,7 +48,7 @@ const buildExamplesOutput = (comment) => { ?.split(",") .filter((m) => m.length > 1) .map((e) => e.trim()) - .filter((e) => fs.existsSync(`./examples/${e}/package.json`)); + .filter((e) => NETLIFY_SITES.includes(e)); if (!examples?.length) { setOutput("[]"); From e189092fbc90a2ee4c9eb54accde6ebbfd688216 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 16:39:41 +0300 Subject: [PATCH 7/9] fix(ci): matrix issue --- .github/workflows/example-previews-comment.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/example-previews-comment.yml b/.github/workflows/example-previews-comment.yml index 7a35fac29cf3..f687768fec33 100644 --- a/.github/workflows/example-previews-comment.yml +++ b/.github/workflows/example-previews-comment.yml @@ -46,7 +46,7 @@ jobs: issues: read strategy: matrix: - example: ${{ fromJson(needs.build_previews_matrix.outputs.matrix) }} + example: ${{ needs.build_previews_matrix.outputs.matrix }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -62,18 +62,18 @@ jobs: - name: Install Dependencies run: pnpm install --ignore-scripts - name: Build example - run: pnpm build --scope ${{ matrix.example.name }} + run: pnpm build --scope ${{ fromJson(matrix.example).name }} - name: Deploy to Netlify uses: nwtgck/actions-netlify@v3.0 with: - publish-dir: ${{ matrix.example.publish_dir }} + publish-dir: ${{ fromJson(matrix.example).publish_dir }} github-token: ${{ secrets.GITHUB_TOKEN }} deploy-message: "[Comment] Deploy from GitHub Actions" - alias: deploy-preview-${{ matrix.example.name }}-${{ github.event.comment.node_id }} + alias: deploy-preview-${{ fromJson(matrix.example).name }}-${{ github.event.comment.node_id }} enable-pull-request-comment: true overwrites-pull-request-comment: true - github-deployment-environment: "deploy-preview-${{ matrix.example.name }}-${{ github.event.comment.node_id }}" - netlify-config-path: ${{ matrix.example.netlify_config_path }} + github-deployment-environment: "deploy-preview-${{ fromJson(matrix.example).name }}-${{ github.event.comment.node_id }}" + netlify-config-path: ${{ fromJson(matrix.example).netlify_config_path }} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From 791db137ef3e95cf5200c982241b755d77f8033f Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 16:43:55 +0300 Subject: [PATCH 8/9] chore(ci): remove preview deploy master --- .github/workflows/example-previews-master.yml | 72 ------------------- 1 file changed, 72 deletions(-) delete mode 100644 .github/workflows/example-previews-master.yml diff --git a/.github/workflows/example-previews-master.yml b/.github/workflows/example-previews-master.yml deleted file mode 100644 index 8d5f8236b177..000000000000 --- a/.github/workflows/example-previews-master.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: Deploy Example Previews - -on: - push: - paths: - - "packages/**" - - "examples/finefoods-antd/**" - - "examples/finefoods-client/**" - - "examples/finefoods-material-ui/**" - - "examples/app-crm/**" - - "examples/pixels/**" - - "examples/invoicer/**" - branches: - - master - -jobs: - changes: - runs-on: ubuntu-latest - permissions: - pull-requests: read - outputs: - examples: ${{ steps.filter.outputs.changes }} - steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - 'finefoods-antd': 'examples/finefoods-antd/**' - 'finefoods-client': 'examples/finefoods-client/**' - 'finefoods-material-ui': 'examples/finefoods-material-ui/**' - 'app-crm': 'examples/app-crm/**' - 'pixels': 'examples/pixels/**' - 'invoicer': 'examples/invoicer/**' - - deploy_example_preview: - needs: changes - runs-on: ubuntu-latest - permissions: - pull-requests: read - strategy: - matrix: - example: ${{ fromJson(needs.changes.outputs.examples) }} - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v3 - with: - version: 9 - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: "pnpm" - - name: Install Dependencies - run: pnpm install --ignore-scripts - - name: Build example - run: pnpm build --scope ${{ matrix.example }} - - name: Deploy to Netlify - uses: nwtgck/actions-netlify@v3.0 - with: - publish-dir: ${{ matrix.example }} - production-branch: master - production-deploy: true - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "[Master] Deploy from GitHub Actions" - enable-pull-request-comment: false - enable-commit-comment: false - overwrites-pull-request-comment: false - netlify-config-path: "./examples/${{ matrix.example }}/netlify.toml" - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - timeout-minutes: 10 From f2704d13966920418e0c140830b487cf8c8a9e65 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Thu, 30 May 2024 16:53:52 +0300 Subject: [PATCH 9/9] chore: update deploy-message fields --- .github/workflows/example-previews-dispatch.yml | 2 +- .github/workflows/example-previews-pr.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/example-previews-dispatch.yml b/.github/workflows/example-previews-dispatch.yml index 8d9e79a6ba2b..bb525295dc15 100644 --- a/.github/workflows/example-previews-dispatch.yml +++ b/.github/workflows/example-previews-dispatch.yml @@ -36,7 +36,7 @@ jobs: with: publish-dir: ${{ format('./examples/{0}/{1}', inputs.example_name, contains(fromJson('["finefoods-client"]'), inputs.example_name) && '.next' || 'dist') }} github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Deploy from GitHub Actions" + deploy-message: "[Dispatch] Deploy from GitHub Actions" alias: deploy-preview-dispatch-${{ inputs.example_name }}-${{ github.ref_name }} enable-pull-request-comment: false overwrites-pull-request-comment: false diff --git a/.github/workflows/example-previews-pr.yml b/.github/workflows/example-previews-pr.yml index 12ee6e4e5e90..90c07b17cdc1 100644 --- a/.github/workflows/example-previews-pr.yml +++ b/.github/workflows/example-previews-pr.yml @@ -71,7 +71,7 @@ jobs: with: publish-dir: ${{ format('./examples/{0}/{1}', matrix.example, contains(fromJson('["finefoods-client"]'), matrix.example) && '.next' || 'dist') }} github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Deploy from GitHub Actions" + deploy-message: "[PR] Deploy from GitHub Actions" alias: deploy-preview-${{ matrix.example }}-${{ github.ref_name }} enable-pull-request-comment: true overwrites-pull-request-comment: true @@ -109,7 +109,7 @@ jobs: with: publish-dir: ${{ format('./examples/{0}/{1}', matrix.example, contains(fromJson('["finefoods-client"]'), matrix.example) && '.next' || 'dist') }} github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Deploy from GitHub Actions" + deploy-message: "[PR] Deploy from GitHub Actions" alias: deploy-preview-${{ matrix.example }}-${{ github.ref_name }} enable-pull-request-comment: true overwrites-pull-request-comment: true