Skip to content

Commit

Permalink
workflows/deploy: Checkout correct commit
Browse files Browse the repository at this point in the history
Checkout PR branch code

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Apr 26, 2024
1 parent 502b5c6 commit ad39c15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad39c15

Please sign in to comment.