Skip to content

Commit

Permalink
日時でタグ付くように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
HidetoNiwa committed Jan 31, 2020
1 parent 752f76b commit 611ca97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/latex/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ today=`date "+%Y%m%d%H%M%S"`
res=`curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://api.github.com/repos/$GITHUB_REPOSITORY/releases \
-d "
{
\"tag_name\": \"v$GITHUB_SHA\",
\"tag_name\": \"$today\",
\"target_commitish\": \"$GITHUB_SHA\",
\"name\": \"v$GITHUB_SHA\",
\"name\": \"$today\",
\"draft\": false,
\"prerelease\": false
}"`
Expand All @@ -27,6 +27,6 @@ res=`curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://api.github.com
rel_id=`echo ${res} | python3 -c 'import json,sys;print(json.load(sys.stdin)["id"])'`

# upload built pdf
curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/${today}/assets?name=main.pdf\
curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/${res}/assets?name=main.pdf\
--header 'Content-Type: application/pdf'\
--upload-file main.pdf

0 comments on commit 611ca97

Please sign in to comment.