Skip to content

Commit

Permalink
ci: Ensure manpages are generated with no diff (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Jul 23, 2023
1 parent b55a827 commit 4bf845f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ jobs:
- name: Build manpages
uses: Analog-inc/asciidoctor-action@master
with:
shellcommand: "make manpages"
shellcommand: "make -B manpages SOURCE_DATE_EPOCH=\"$(date +%s --utc --date \"$(grep -m1 -o -E 'Date: .*' man/shard.yml.5 | cut -d' ' -f2)\")\""
- name: Ensure no changes
run: git diff --exit-code
2 changes: 1 addition & 1 deletion man/shard.yml.5
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'\" t
.\" Title: shard.yml
.\" Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.18
.\" Generator: Asciidoctor 2.0.17
.\" Date: 2023-04-07
.\" Manual: File Formats
.\" Source: shards 0.17.3
Expand Down
6 changes: 4 additions & 2 deletions man/shards.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'\" t
.\" Title: shards
.\" Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.18
.\" Generator: Asciidoctor 2.0.17
.\" Date: 2023-04-07
.\" Manual: Shards Manual
.\" Source: shards 0.17.3
Expand Down Expand Up @@ -200,7 +200,9 @@ Disables colored output.
.sp
\-\-local
.RS 4
Don\(cqt update remote repositories, use the local cache only.
Do not update remote repository cache. Instead, Shards will use the local copies
already present in the cache (see \fBSHARDS_CACHE_PATH\fP).
The command will fail if a depedency is unavailable in the cache.
.RE
.sp
\-q, \-\-quiet
Expand Down

0 comments on commit 4bf845f

Please sign in to comment.