From dbe3439cf4b985dbea7965534f3bab714be759d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 23 Apr 2023 11:27:39 +0200 Subject: [PATCH] Update action.yml --- make-json/action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/make-json/action.yml b/make-json/action.yml index edf5026..3462296 100644 --- a/make-json/action.yml +++ b/make-json/action.yml @@ -2,6 +2,9 @@ name: "Make JSON from releases" author: "Igor Pecovnik" description: "Make JSON from releases" inputs: + owner: + description: Owner + required: true repository: description: Repository required: true @@ -28,7 +31,7 @@ runs: uses: actions/checkout@v3.1.0 with: fetch-depth: 1 - repository: ${{ inputs.repository }} + repository: ${{ inputs.owner }}/${{ inputs.repository }} path: ${{ inputs.repository }} clean: false @@ -47,7 +50,7 @@ runs: truncate json/${FILENAME}.json --size=0 || true truncate json/${FILENAME}.md --size=0 || true - COMMAND="gh release view --json assets --repo github.com/\${{ inputs.repository }} 2>/dev/null | python3 -mjson.tool | sed '1,2d;\$d' | json -ga name url size updatedAt -d, | sort $GREP " + COMMAND="gh release view --json assets --repo github.com/${{ inputs.owner }}/\${{ inputs.repository }} 2>/dev/null | python3 -mjson.tool | sed '1,2d;\$d' | json -ga name url size updatedAt -d, | sort $GREP " eval $COMMAND | (while read -r line; do name=$(echo $line | cut -d"," -f1 | awk '{print tolower($0)}')