58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
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
|