From 5c751f592f6b3bcec820ba32f481e51ac805f4b1 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 3 Aug 2024 16:22:30 +0800 Subject: [PATCH] Correct handling of previews. (#580) * Reference the SHA of the pull request HEAD in the checkout. * Minor content change to validate previews. --- .github/workflows/ci.yml | 7 ++++++- content/news/events/djangocon-us-2017-sprints/contents.lr | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc2017dc5d..632e11196a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/content/news/events/djangocon-us-2017-sprints/contents.lr b/content/news/events/djangocon-us-2017-sprints/contents.lr index 4c2821d864..6a15cadc56 100644 --- a/content/news/events/djangocon-us-2017-sprints/contents.lr +++ b/content/news/events/djangocon-us-2017-sprints/contents.lr @@ -1,4 +1,4 @@ -title: DjangoCon US 2017 Sprints +title: DjangoCon US 2017 --- date: 2017-08-17 ---