Automatic workflow to update yandex-music ebuild
Some checks failed
yandex-music / check-and-update (push) Failing after 29s

This commit was merged in pull request #1.
This commit is contained in:
Petr Polezhaev
2026-02-02 15:40:24 +03:00
committed by Petr Polezhaev
parent 6e6228033f
commit 32173db78b
17 changed files with 254 additions and 161 deletions

View File

@@ -0,0 +1,26 @@
name: "Fetch the electron-updater manifest"
description: "Check the specified manifest and extract the version and deprecated versions"
inputs:
url:
description: "electron-updater update manifest url to check"
required: true
outputs:
version:
description: "Latest version for the package"
deprecated_versions:
description: "A condition string for deprecated packages"
runs:
using: docker
image: docker://linuxserver/yq
entrypoint: /bin/bash
args:
- -c
- |
set -euo pipefail
manifest=$(mktemp)
curl -L -s "${{ inputs.url }}" | yq -r '.version, .commonConfig.DEPRECATED_VERSIONS' | (
read version;
read deprecated;
echo "version=${version}" >> "${GITHUB_OUTPUT}"
echo "deprecated_versions=${deprecated}" >> "${GITHUB_OUTPUT}"
)