Update workflow

This commit is contained in:
2026-02-06 00:41:42 +03:00
parent 8a7f3eaf16
commit 55c97eb708
9 changed files with 239 additions and 11 deletions

View File

@@ -1,11 +0,0 @@
name: Update Yandex Music
run-name: ${{gitea.actor}} updating yandex-music ebuild if needed
on:
schedule:
- cron: '0 * * * *'
jobs:
Check-New-Releases:
runs-on: ubuntu-latest
steps:
- run: echo Test

View File

@@ -0,0 +1,57 @@
name: yandex-music
on:
workflow_dispatch:
push:
branches:
- "master"
tags:
- "v*"
schedule:
- cron: "0 * * * *"
jobs:
check-and-update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{GITEA_TOKEN}}
- name: Fetch update manifest
uses: ./.gitea/actions/fetch-electron-update
id: manifest
with:
url: https://desktop.app.music.yandex.net/stable/latest-linux.yml
- name: Remove deprecated ebuilds
uses: ./.gitea/actions/drop-ebuilds-matching
id: cleanup
with:
atom: media-sound/yandex-music
condition: ${{steps.manifest.outputs.deprecated_versions}}
- name: Create ebuild for latest version
uses: ./.gitea/actions/copy-latest-ebuild-as
id: latest
with:
atom: media-sound/yandex-music
version: ${{steps.manifest.outputs.version}}
- name: Check repo for validity
uses: ./.gitea/actions/pkgdev-manifest
- name: Check repo for validity
uses: pkgcore/pkgcheck-action@v1
with:
args: --keywords=-RedundantVersion media-sound/yandex-music
- name: Commit new ebuild
uses: EndBug/add-and-commit@v9
if: ${{steps.latest.outputs.message != '' || steps.cleanup.outputs.message != ''}}
with:
add: media-sound/yandex-music
author_name: Automation
author_email: noreply@ratigorsk-12.ru
message: ${{ format('media-sound/yandex-music {0} {1}', steps.cleanup.outputs.message, steps.latest.outputs.message) }}
push: true