Files
Petr Polezhaev 32173db78b
Some checks failed
yandex-music / check-and-update (push) Failing after 29s
Automatic workflow to update yandex-music ebuild
2026-02-06 00:58:08 +03:00

27 lines
820 B
YAML

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}"
)