Skip to content

Commit 0781052

Browse files
fix pr preview workflow bug
1 parent d515175 commit 0781052

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/build-preview.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,14 @@ jobs:
4242
id: pages
4343
uses: actions/configure-pages@v4
4444

45-
- uses: jwalton/gh-find-current-pr@master
46-
if: github.event.action != 'closed'
47-
id: pr
48-
with:
49-
state: all
50-
5145
- name: SSH debug
5246
if: runner.debug == '1'
5347
uses: mxschmitt/action-tmate@v3
5448

5549
- name: Build preview version of site
5650
if: github.event.action != 'closed'
5751
run: |
58-
JEKYLL_ENV=production bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path || '' }}/${{ env.PREVIEWS_FOLDER }}/pr-${{ env.pr }}"
59-
env:
60-
pr: ${{ steps.pr.outputs.pr }}
52+
JEKYLL_ENV=production bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path || '' }}/${{ env.PREVIEWS_FOLDER }}/pr-${{ github.event.number }}"
6153
6254
- name: Commit preview to Pages branch
6355
uses: rossjrw/pr-preview-action@v1.4.7

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
Reference: common-changelog.org
44

5+
## 1.3.5 - 2025-05-12
6+
7+
###
8+
9+
- Fix workflow bug where PR previews on GitHub Actions have broken styles/links/etc.
10+
- Fix tags component relative link bug
11+
512
## 1.3.4 - 2025-02-03
613

714
### Changed

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# citation metadata for the template itself
22

33
title: "Lab Website Template"
4-
version: 1.3.4
5-
date-released: 2025-02-03
4+
version: 1.3.5
5+
date-released: 2025-05-12
66
url: "https://github.com/greenelab/lab-website-template"
77
authors:
88
- family-names: "Rubinetti"

0 commit comments

Comments
 (0)