Automatic workflow to update yandex-music ebuild
Some checks failed
yandex-music / check-and-update (push) Failing after 29s
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:
26
.gitea/actions/fetch-electron-update/action.yml
Normal file
26
.gitea/actions/fetch-electron-update/action.yml
Normal 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}"
|
||||
)
|
||||
Reference in New Issue
Block a user