-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/parallel architecture build (#65)
Implement parallel architecture build - Add a check to verify if the Omada version specified in config.yaml is available. - Abort the pipeline if unavailable.
- Loading branch information
Showing
3 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Check Omada Version Availability | ||
description: Check if the given Omada version is available | ||
inputs: | ||
version: | ||
description: The version to check | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check Omada Version | ||
shell: bash | ||
run: | | ||
URL="https://omada-controller-url.mbentley.net/hooks/omada_ver_to_url?omada-ver=${{ inputs.version }}" | ||
OUTPUT=$(curl -sf "$URL") | ||
if [ -z "$OUTPUT" ]; then | ||
echo "Error: No output received from $URL" | ||
exit 1 | ||
else | ||
echo "Success: Received output" | ||
echo "$OUTPUT" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters