mirror of
https://github.com/cryptomator/cryptomator.git
synced 2025-02-17 00:29:00 +00:00
upload an a json array of objects instead of a map of objects
This commit is contained in:
parent
532ffb1202
commit
7755017a71
5
.github/workflows/error-db.yml
vendored
5
.github/workflows/error-db.yml
vendored
@ -46,9 +46,10 @@ jobs:
|
|||||||
gistURL: https://gist.github.com/cryptobot/accba9fb9555e7192271b85606f97230
|
gistURL: https://gist.github.com/cryptobot/accba9fb9555e7192271b85606f97230
|
||||||
- name: Merge Error Code Data
|
- name: Merge Error Code Data
|
||||||
run: |
|
run: |
|
||||||
jq -c '.' ${{ steps.get-gist.outputs.file }} > original.json
|
jq -c 'map({key:.id} + {value:.}) | from_entries' ${{ steps.get-gist.outputs.file }} > original.json
|
||||||
echo $DISCUSSION | jq -c '.repository.discussion | .comments = .comments.totalCount | {(.id|tostring) : .}' > new.json
|
echo $DISCUSSION | jq -c '.repository.discussion | .comments = .comments.totalCount | {(.id|tostring) : .}' > new.json
|
||||||
jq -s '.[0] * .[1]' original.json new.json > merged.json
|
jq -s '.[0] * .[1]' original.json new.json > merged.json
|
||||||
|
jq -c 'to_entries | map(.value)' merged.json > final.json
|
||||||
env:
|
env:
|
||||||
DISCUSSION: ${{ steps.query-data.outputs.result }}
|
DISCUSSION: ${{ steps.query-data.outputs.result }}
|
||||||
- name: Patch Gist
|
- name: Patch Gist
|
||||||
@ -57,4 +58,4 @@ jobs:
|
|||||||
token: ${{ secrets.CRYPTOBOT_GIST_TOKEN }}
|
token: ${{ secrets.CRYPTOBOT_GIST_TOKEN }}
|
||||||
gist_id: accba9fb9555e7192271b85606f97230
|
gist_id: accba9fb9555e7192271b85606f97230
|
||||||
gist_file_name: errorcodes.json
|
gist_file_name: errorcodes.json
|
||||||
file_path: merged.json
|
file_path: final.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user