new ebuild: dev-util/opencode-desktop-bin
opencode-desktop-bin / check-and-update (push) Successful in 28s
yandex-music / check-and-update (push) Successful in 2m17s

This commit is contained in:
2026-11-26 00:43:43 +03:00
parent 75ba9acd03
commit b68cbaf649
9 changed files with 478 additions and 10 deletions
@@ -18,17 +18,31 @@ runs:
shell: bash
run: |
set -euo pipefail
ebuild_dir="./${{ inputs.atom }}"
name=$(basename "${{ inputs.atom }}")
want_ebuild="${ebuild_dir}/${name}-${{ inputs.version }}.ebuild"
atom="${{ inputs.atom }}"
version="${{ inputs.version }}"
ebuild_dir="./${atom}"
name="${atom##*/}"
want_ebuild="${ebuild_dir}/${name}-${version}.ebuild"
message=""
if [[ -f "${want_ebuild}" ]]; then
echo "Ebuild already exists"
else
existing_ebuilds=( "${ebuild_dir}"/*.ebuild )
latest_existing_ebuild="${existing_ebuilds[-1]}"
shopt -s nullglob
existing_ebuilds=( "${ebuild_dir}/${name}-"*.ebuild )
if (( ${#existing_ebuilds[@]} == 0 )); then
echo "No existing ebuild to copy from" >&2
exit 1
fi
# Use version sort: plain globbing would put 2.9.0 after 2.10.0.
latest_existing_ebuild=$(
printf '%s\n' "${existing_ebuilds[@]}" \
| sort -V \
| tail -n 1
)
echo "Copying ${latest_existing_ebuild} to ${want_ebuild}"
cp "${latest_existing_ebuild}" "${want_ebuild}"
message="add ${{ inputs.version }}"
message="add ${version}"
fi
echo "message=${message}" >> "${GITHUB_OUTPUT}"