-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final improvements to make tests pass on GitHub CI (#86)
* Update more test artifacts * Update .gitignore * Update draft filter * Update default-article-info.yaml * Update draft.lua * Add notes on running locally * Update entrypoint.sh * Update Makefile * Use source date epoch for draft publication time * Update CHANGELOG.md
- Loading branch information
Showing
7 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
--- Removes and alters metadata for draft output | ||
|
||
--- If you change this, please keep it in sync with | ||
--- resources/default-article-info.yaml | ||
function Meta (meta) | ||
if meta.draft and meta.draft ~= '' then | ||
local epoch = os.getenv 'SOURCE_DATE_EPOCH' | ||
and os.time { year = 1970, month = 1, day = 1, hour = 0, min = 0, | ||
sec = tonumber(os.getenv 'SOURCE_DATE_EPOCH') } | ||
or os.time() | ||
meta.article.doi = '10.xxxxxx/draft' | ||
meta.article.issue = '0' | ||
meta.article.volume = '0' | ||
meta.article.issue = '¿ISSUE?' | ||
meta.article.volume = '¿VOL?' | ||
meta.published = 'unpublished' | ||
meta.published_parts = os.date('*t') | ||
meta.published_parts = os.date('*t', epoch) | ||
return meta | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters