Skip to content

Commit

Permalink
Merge pull request #605 from mhdzumair/main
Browse files Browse the repository at this point in the history
Add support for develop channel in mediafusion for devs & testers
  • Loading branch information
funkypenguin authored Oct 14, 2024
2 parents 5e7fec8 + 13aa9f4 commit b68c692
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
17 changes: 16 additions & 1 deletion apps/mediafusion/ci/latest.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/env bash
version=$(curl -sX GET https://api.github.com/repos/mhdzumair/MediaFusion/releases/latest --header "Authorization: Bearer ${TOKEN}" | jq --raw-output '. | .tag_name')
channel=$1

if [ "$channel" == "main" ]; then
# For main channel, get the latest stable release
version=$(curl -sX GET "https://api.github.com/repos/mhdzumair/MediaFusion/releases/latest" --header "Authorization: Bearer ${TOKEN}" | jq --raw-output '.tag_name')
elif [ "$channel" == "develop" ]; then
# For develop channel, get the latest release (including pre-releases)
latest_release=$(curl -sX GET "https://api.github.com/repos/mhdzumair/MediaFusion/releases" --header "Authorization: Bearer ${TOKEN}" | jq '.[0]')

# Use the tag_name of the latest release, whether it's a pre-release or stable
version=$(echo "$latest_release" | jq --raw-output '.tag_name')
else
echo "Invalid channel specified"
exit 1
fi

version="${version#*v}"
printf "%s" "${version}"
11 changes: 11 additions & 0 deletions apps/mediafusion/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
"enabled": false,
"type": "web"
}
},
{
"name": "develop",
"platforms": [
"linux/amd64"
],
"stable": false,
"tests": {
"enabled": false,
"type": "web"
}
}
]
}

0 comments on commit b68c692

Please sign in to comment.