From 0fcd89035ec0cc173e6098162fa35905c5f3c773 Mon Sep 17 00:00:00 2001 From: TrebledJ <39648915+TrebledJ@users.noreply.github.com> Date: Tue, 11 Jun 2024 00:30:44 +0800 Subject: [PATCH] fix(workflow): dir stuff --- .github/workflows/pr.automerge.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.automerge.yml b/.github/workflows/pr.automerge.yml index ae018ced6..9bf4e5355 100644 --- a/.github/workflows/pr.automerge.yml +++ b/.github/workflows/pr.automerge.yml @@ -52,7 +52,9 @@ jobs: uses: actions/checkout@v4 with: ref: site - path: master/ + path: tmp/ + + - run: cp -r tmp/_site/ master/ - name: Download PR Site uses: actions/download-artifact@v4 @@ -61,12 +63,13 @@ jobs: path: pr/ - name: Ignore Files - run: rm master/_site/css/shooting-stars.* pr/_site/css/shooting-stars.* + # Ignore files which rely on compile-time RNG. + run: rm master/css/shooting-stars.* pr/css/shooting-stars.* - name: Diff Folders id: diff continue-on-error: true - run: git diff --word-diff=porcelain --no-index --output .diff -- master/_site/ pr/ + run: git diff --word-diff=porcelain --no-index --output .diff -- master/ pr/ - name: Diff Found if: steps.diff.outcome != 'success'