Skip to content

Commit 4ac0bdc

Browse files
Merge pull request #15 from YDX-2147483647/pr-8138
Prepare for the last build that uses the old docs infrastructure
2 parents 72b170a + 71e6270 commit 4ac0bdc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ jobs:
3737
- uses: actions/checkout@v6
3838
with:
3939
repository: typst/typst
40-
ref: ${{ env.INPUT_REF }}
40+
# Temporary workaround for using the old docs infrastructure
41+
ref: main
42+
fetch-depth: 20
43+
- run: git switch --detach ${{ env.INPUT_REF }}
4144

4245
- uses: actions/checkout@v6
4346
with:

scripts/get_revision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def get_description() -> str:
2525
# As a result, `git describe --tags` is always relative to v0.11.0, like `v0.11.0-1051-g586b04948`.
2626

2727
name_full = run(
28-
["git", "name-rev", "--name-only", "HEAD"],
28+
["git", "name-rev", "--name-only", "--no-undefined", "HEAD"],
2929
capture_output=True,
3030
text=True,
3131
check=True,

0 commit comments

Comments
 (0)