chore: directly use github for zfs version (#23)

This commit is contained in:
Benjamin Sherman
2023-04-15 01:00:36 -05:00
committed by GitHub
parent de8b55322a
commit ec0eb378c0
2 changed files with 6 additions and 7 deletions

View File

@@ -44,14 +44,13 @@ jobs:
steps:
# Use cURL to fetch the given URL, saving the response to `data.json`
- name: Fetch zfs versions
# Uses project_id from: https://release-monitoring.org/project/11706/
run: curl "https://release-monitoring.org/api/v2/versions/?project_id=11706" -o data.json
run: curl "https://api.github.com/repos/openzfs/zfs/releases" -o data.json
- name: Get latest zfs version
id: latest
run: echo "version=$(jq -r '.stable_versions[0]' data.json)" >> $GITHUB_OUTPUT
run: echo "version=$(jq -r '.[0].name' data.json)" >> $GITHUB_OUTPUT
- name: Get previous zfs version
id: previous
run: echo "version=$(jq -r '.stable_versions[1]' data.json)" >> $GITHUB_OUTPUT
run: echo "version=$(jq -r '.[1].name' data.json)" >> $GITHUB_OUTPUT
build_zfs:
name: Build ZFS