Skip to content

Commit 4bf845f

Browse files
ci: Ensure manpages are generated with no diff (#594)
1 parent b55a827 commit 4bf845f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@ jobs:
7676
- name: Build manpages
7777
uses: Analog-inc/asciidoctor-action@master
7878
with:
79-
shellcommand: "make manpages"
79+
shellcommand: "make -B manpages SOURCE_DATE_EPOCH=\"$(date +%s --utc --date \"$(grep -m1 -o -E 'Date: .*' man/shard.yml.5 | cut -d' ' -f2)\")\""
80+
- name: Ensure no changes
81+
run: git diff --exit-code

man/shard.yml.5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'\" t
22
.\" Title: shard.yml
33
.\" Author: [see the "AUTHOR(S)" section]
4-
.\" Generator: Asciidoctor 2.0.18
4+
.\" Generator: Asciidoctor 2.0.17
55
.\" Date: 2023-04-07
66
.\" Manual: File Formats
77
.\" Source: shards 0.17.3

man/shards.1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'\" t
22
.\" Title: shards
33
.\" Author: [see the "AUTHOR(S)" section]
4-
.\" Generator: Asciidoctor 2.0.18
4+
.\" Generator: Asciidoctor 2.0.17
55
.\" Date: 2023-04-07
66
.\" Manual: Shards Manual
77
.\" Source: shards 0.17.3
@@ -200,7 +200,9 @@ Disables colored output.
200200
.sp
201201
\-\-local
202202
.RS 4
203-
Don\(cqt update remote repositories, use the local cache only.
203+
Do not update remote repository cache. Instead, Shards will use the local copies
204+
already present in the cache (see \fBSHARDS_CACHE_PATH\fP).
205+
The command will fail if a depedency is unavailable in the cache.
204206
.RE
205207
.sp
206208
\-q, \-\-quiet

0 commit comments

Comments
 (0)