mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-28 02:06:12 -04:00
CI: Use distributed network for service uptime check
This commit is contained in:
@@ -4,6 +4,12 @@ inputs:
|
||||
repositorySecret:
|
||||
description: GitHub token for API access
|
||||
required: true
|
||||
checkApiSecret:
|
||||
description: Token for server check API
|
||||
required: false
|
||||
checkApiServers:
|
||||
description: Servers for the check API
|
||||
required: false
|
||||
runSchemaChecks:
|
||||
description: Enable schema checking
|
||||
required: false
|
||||
@@ -46,8 +52,8 @@ runs:
|
||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
|
||||
fi
|
||||
brew install --overwrite --quiet python3
|
||||
python3 -m pip install jsonschema json_source_map requests
|
||||
brew install --overwrite --quiet python@3.11
|
||||
python3 -m pip install jsonschema json_source_map requests aiohttp
|
||||
echo ::endgroup::
|
||||
|
||||
- name: Validate Services File JSON Schema 🕵️
|
||||
@@ -91,6 +97,8 @@ runs:
|
||||
GITHUB_TOKEN: ${{ inputs.repositorySecret }}
|
||||
WORKFLOW_RUN_ID: ${{ github.run_id }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
API_KEY: ${{ inputs.checkApiSecret }}
|
||||
API_SERVERS: ${{ inputs.checkApiServers }}
|
||||
run: |
|
||||
: Check for defunct services 📉
|
||||
python3 -u .github/scripts/utils.py/check-services.py
|
||||
|
||||
Reference in New Issue
Block a user