From 611ca97ffe214089b05e7de9b782ca16ad7bd2ed Mon Sep 17 00:00:00 2001 From: HidetoNiwa Date: Fri, 31 Jan 2020 17:12:54 +0900 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=99=82=E3=81=A7=E3=82=BF=E3=82=B0?= =?UTF-8?q?=E4=BB=98=E3=81=8F=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/latex/entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/latex/entrypoint.sh b/.github/actions/latex/entrypoint.sh index d415cec..938c777 100644 --- a/.github/actions/latex/entrypoint.sh +++ b/.github/actions/latex/entrypoint.sh @@ -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 }"` @@ -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 \ No newline at end of file