Skip to content

Commit

Permalink
Correct handling of previews. (#580)
Browse files Browse the repository at this point in the history
* Reference the SHA of the pull request HEAD in the checkout.

* Minor content change to validate previews.
  • Loading branch information
freakboy3742 authored Aug 3, 2024
1 parent 226f26b commit 5c751f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'preview')
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion content/news/events/djangocon-us-2017-sprints/contents.lr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: DjangoCon US 2017 Sprints
title: DjangoCon US 2017
---
date: 2017-08-17
---
Expand Down

0 comments on commit 5c751f5

Please sign in to comment.