From 4a5d78d909b1bbcb787ec1d9e0433e8fed97ffe1 Mon Sep 17 00:00:00 2001 From: brecert Date: Sat, 11 Sep 2021 10:12:14 -0400 Subject: [PATCH] Use `single-commit` for build-previews --- .github/workflows/preview_cleanup.yml | 1 + .github/workflows/preview_pull_request.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview_cleanup.yml b/.github/workflows/preview_cleanup.yml index 18ac1de2..b7aa1d9a 100644 --- a/.github/workflows/preview_cleanup.yml +++ b/.github/workflows/preview_cleanup.yml @@ -26,6 +26,7 @@ jobs: with: folder: . branch: build-previews + single-commit: true - name: send comment uses: marocchino/sticky-pull-request-comment@v2 diff --git a/.github/workflows/preview_pull_request.yml b/.github/workflows/preview_pull_request.yml index 3f7d4019..6a0a239a 100644 --- a/.github/workflows/preview_pull_request.yml +++ b/.github/workflows/preview_pull_request.yml @@ -32,9 +32,10 @@ jobs: - name: publish preview uses: JamesIves/github-pages-deploy-action@4.1.5 with: - branch: build-previews folder: dist + branch: build-previews target-folder: ${{ github.ref }} + single-commit: true - name: send comment uses: marocchino/sticky-pull-request-comment@v2 @@ -42,6 +43,6 @@ jobs: header: Preview environment message: | ## Preview environment - https://${{ github.repository_owner }}.github.io/revite/${{ github.ref }}/index.html + https://${{ github.repository_owner }}.github.io/revite/${{ github.ref }}/ This link will remain active until the `use-preview` label is removed.