mirror of
https://github.com/outbackdingo/ucore.git
synced 2026-01-27 18:20:42 +00:00
chore: directly use github for zfs version (#23)
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user