From 5f8cb6b60c84bcc435f3570fa8b83fec53daed82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 23 Apr 2023 11:15:19 +0200 Subject: [PATCH 1/4] Update action.yml --- make-json/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-json/action.yml b/make-json/action.yml index dc7b855..644cbc7 100644 --- a/make-json/action.yml +++ b/make-json/action.yml @@ -34,7 +34,7 @@ runs: uses: actions/checkout@v3.1.0 with: fetch-depth: 1 - repository: armbian/${{ inputs.repository }} + repository: ${{ inputs.repository }} path: ${{ inputs.repository }} clean: false From 923519386ef5c2e296ed1896bf9026ffc46b802d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 23 Apr 2023 11:17:48 +0200 Subject: [PATCH 2/4] Update action.yml --- make-json/action.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/make-json/action.yml b/make-json/action.yml index 644cbc7..e80b726 100644 --- a/make-json/action.yml +++ b/make-json/action.yml @@ -8,12 +8,6 @@ inputs: filename: description: Filename required: false - key: - description: key - required: true - known_hosts: - description: knowfile - required: true grep: description: grep required: false @@ -74,14 +68,4 @@ runs: echo -ne "| [$BOARD_NAME]($url#$board_name) | [:file_folder:]($url".asc") | [:file_folder:]($url".sha") | $out_release | $out_branch | $out_desktop | $out_size | $out_kernel |\n" \ >> json/${FILENAME}.md fi - done) - -# - name: SFTP uploader -# uses: wangyucode/sftp-upload-action@v1.4.8 -# with: -# username: 'upload' -# host: 'users.armbian.com' -# privateKey: ${{ inputs.key }} -# dryRun: false -# localDir: 'json/' -# remoteDir: 'json' + done) From c00e399f3668a8acfe180356f3d74b28a99f24ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 23 Apr 2023 11:22:45 +0200 Subject: [PATCH 3/4] Update action.yml --- make-json/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-json/action.yml b/make-json/action.yml index e80b726..edf5026 100644 --- a/make-json/action.yml +++ b/make-json/action.yml @@ -47,7 +47,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/armbian/\${{ 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.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)}') 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 4/4] 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)}')