Skip to content

Commit

Permalink
Fetch all releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Oct 26, 2023
1 parent 3017b3d commit b8a5ea6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ concurrency:
jobs:
create-index:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Create index
run: |
set -euxo pipefail
curl -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/leanprover/lean4/releases?per_page=100 > releases
curl -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/leanprover/lean4-nightly/releases?per_page=100 > releases-nightly
gh api --paginate repos/leanprover/lean4/releases > releases
gh api --paginate repos/leanprover/lean4-nightly/releases > releases-nightly
mkdir output
jq -s '{version: "1", stable: .[0] | map(select(.prerelease | not)), beta: .[0] | map(select(.prerelease)), nightly: .[1]}' releases releases-nightly > output/index.json
- name: Create artifact
Expand Down

0 comments on commit b8a5ea6

Please sign in to comment.