From ad39c153aa66784cf5540d31356fc680d5afc12a Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Fri, 26 Apr 2024 15:10:01 +0300 Subject: [PATCH] workflows/deploy: Checkout correct commit Checkout PR branch code Signed-off-by: Denys Fedoryshchenko --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 30750aa3..16d78aa9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,11 +17,13 @@ jobs: ${{ github.event.issue.pull_request }} contains(github.event.comment.body, '/staging') steps: - - uses: actions/checkout@v4 + - name: Checkout PR branch + uses: actions/checkout@v4 with: submodules: recursive # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod lfs: true # Fetch Git LFS files + ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup Hugo uses: peaceiris/actions-hugo@v3