Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Dec 11, 2024
1 parent 457f68e commit cf9abdf
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/database-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ jobs:

- name: Get all releases from lbr38/repomanager
run: |
test=$(curl -s https://api.github.com/repos/lbr38/repomanager/releases?per_page=10000 | jq -r '.[].name')
echo "RELEASES=$test" >> $GITHUB_ENV
- name: Format releases to a key-value array
run: |
RELEASES2="${{ env.RELEASES }}"
echo $RELEASES2
# RELEASES=$(echo $RELEASES2 | jq -R 'split("\n") | map(select(. != "")) | map({(.): .}) | add')
# echo $RELEASES
RELEASES=$(curl -s https://api.github.com/repos/lbr38/repomanager/releases?per_page=10000 | jq -r '.[].name')
RELEASES=$(echo $RELEASES | jq -R 'split("\n") | map(select(. != "")) | map({(.): .}) | add')
echo $RELEASES
- name: exit
Expand Down

0 comments on commit cf9abdf

Please sign in to comment.