mirror of
https://github.com/YunoHost-Apps/bazarr_ynh.git
synced 2024-09-03 18:06:27 +02:00
Merge pull request #8 from YunoHost-Apps/testing
This commit is contained in:
commit
b3c6b09ed7
6 changed files with 83 additions and 30 deletions
4
.github/workflows/updater.sh
vendored
4
.github/workflows/updater.sh
vendored
|
@ -9,9 +9,6 @@
|
||||||
# Since each app is different, maintainers can adapt its contents so as to perform
|
# Since each app is different, maintainers can adapt its contents so as to perform
|
||||||
# automatic actions when a new upstream release is detected.
|
# automatic actions when a new upstream release is detected.
|
||||||
|
|
||||||
# Remove this exit command when you are ready to run this Action
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# FETCHING LATEST RELEASE AND ITS ASSETS
|
# FETCHING LATEST RELEASE AND ITS ASSETS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -19,6 +16,7 @@ exit 1
|
||||||
# Fetching information
|
# Fetching information
|
||||||
current_version=$(cat manifest.json | jq -j '.version|split("~")[0]')
|
current_version=$(cat manifest.json | jq -j '.version|split("~")[0]')
|
||||||
repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]')
|
repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]')
|
||||||
|
echo "REPO=$repo" >> $GITHUB_ENV
|
||||||
# Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions)
|
# Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions)
|
||||||
version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1)
|
version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1)
|
||||||
assets=($(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '[ .[] | select(.tag_name=="'$version'").assets[].browser_download_url ] | join(" ") | @sh' | tr -d "'"))
|
assets=($(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '[ .[] | select(.tag_name=="'$version'").assets[].browser_download_url ] | join(" ") | @sh' | tr -d "'"))
|
||||||
|
|
50
.github/workflows/updater.yml
vendored
Normal file
50
.github/workflows/updater.yml
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# This workflow allows GitHub Actions to automagically update your app whenever a new upstream release is detected.
|
||||||
|
# You need to enable Actions in your repository settings, and fetch this Action from the YunoHost-Apps organization.
|
||||||
|
# This file should be enough by itself, but feel free to tune it to your needs.
|
||||||
|
# It calls updater.sh, which is where you should put the app-specific update steps.
|
||||||
|
name: Check for new upstream releases
|
||||||
|
on:
|
||||||
|
# Allow to manually trigger the workflow
|
||||||
|
workflow_dispatch:
|
||||||
|
# Run it every day at 6:00 UTC
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * *'
|
||||||
|
jobs:
|
||||||
|
updater:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Fetch the source code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Run the updater script
|
||||||
|
id: run_updater
|
||||||
|
run: |
|
||||||
|
# Setting up Git user
|
||||||
|
git config --global user.name 'yunohost-bot'
|
||||||
|
git config --global user.email 'yunohost-bot@users.noreply.github.com'
|
||||||
|
# Run the updater script
|
||||||
|
/bin/bash .github/workflows/updater.sh
|
||||||
|
- name: Commit changes
|
||||||
|
id: commit
|
||||||
|
if: ${{ env.PROCEED == 'true' }}
|
||||||
|
run: |
|
||||||
|
git commit -am "Upgrade to v$VERSION"
|
||||||
|
- name: Create Pull Request
|
||||||
|
id: cpr
|
||||||
|
if: ${{ env.PROCEED == 'true' }}
|
||||||
|
uses: peter-evans/create-pull-request@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
commit-message: Update to version ${{ env.VERSION }}
|
||||||
|
committer: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
||||||
|
author: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
||||||
|
signoff: false
|
||||||
|
base: testing
|
||||||
|
branch: ci-auto-update-v${{ env.VERSION }}
|
||||||
|
delete-branch: true
|
||||||
|
title: 'Upgrade to version ${{ env.VERSION }}'
|
||||||
|
body: |
|
||||||
|
Upgrade to v${{ env.VERSION }}
|
||||||
|
[See upstream release page](https://github.com/${{ env.REPO }}/releases/tag/v${{ env.VERSION }})
|
||||||
|
draft: false
|
22
README.md
22
README.md
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Bazarr for YunoHost
|
# Bazarr for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/bazarr)  
|
[](https://dash.yunohost.org/appci/app/bazarr)  
|
||||||
[](https://install-app.yunohost.org/?app=bazarr)
|
[](https://install-app.yunohost.org/?app=bazarr)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
@ -24,13 +24,12 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
|
||||||
- Subtitles upgrade whenever better ones are released
|
- Subtitles upgrade whenever better ones are released
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 1.0.1~ynh3
|
**Shipped version:** 1.1.0~ynh1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
|
@ -39,21 +38,22 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://bazarr.media
|
* Official app website: <https://bazarr.media>
|
||||||
* Official admin documentation: https://wiki.bazarr.media
|
* Official admin documentation: <https://wiki.bazarr.media>
|
||||||
* Upstream app code repository: https://github.com/morpheus65535/bazarr
|
* Upstream app code repository: <https://github.com/morpheus65535/bazarr>
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_bazarr
|
* YunoHost documentation for this app: <https://yunohost.org/app_bazarr>
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/bazarr_ynh/issues
|
* Report a bug: <https://github.com/YunoHost-Apps/bazarr_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing).
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing).
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
To try the testing branch, please proceed like that.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade bazarr -u https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
sudo yunohost app upgrade bazarr -u https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
|
||||||
|
|
28
README_fr.md
28
README_fr.md
|
@ -1,10 +1,14 @@
|
||||||
|
<!--
|
||||||
|
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
||||||
|
It shall NOT be edited by hand.
|
||||||
|
-->
|
||||||
|
|
||||||
# Bazarr pour YunoHost
|
# Bazarr pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/bazarr)  
|
[](https://dash.yunohost.org/appci/app/bazarr)  
|
||||||
[](https://install-app.yunohost.org/?app=bazarr)
|
[](https://install-app.yunohost.org/?app=bazarr)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
|
||||||
|
|
||||||
> *Ce package vous permet d'installer Bazarr rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d'installer Bazarr rapidement et simplement sur un serveur YunoHost.
|
||||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||||
|
@ -20,13 +24,12 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
|
||||||
- Subtitles upgrade whenever better ones are released
|
- Subtitles upgrade whenever better ones are released
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 1.0.1~ynh3
|
**Version incluse :** 1.1.0~ynh1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
@ -35,21 +38,22 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://bazarr.media
|
* Site officiel de l'app : <https://bazarr.media>
|
||||||
* Documentation officielle de l'admin : https://wiki.bazarr.media
|
* Documentation officielle de l'admin : <https://wiki.bazarr.media>
|
||||||
* Dépôt de code officiel de l'app : https://github.com/morpheus65535/bazarr
|
* Dépôt de code officiel de l'app : <https://github.com/morpheus65535/bazarr>
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_bazarr
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_bazarr>
|
||||||
* Signaler un bug : https://github.com/YunoHost-Apps/bazarr_ynh/issues
|
* Signaler un bug : <https://github.com/YunoHost-Apps/bazarr_ynh/issues>
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing).
|
||||||
|
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade bazarr -u https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
sudo yunohost app upgrade bazarr -u https://github.com/YunoHost-Apps/bazarr_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=0
|
setup_public=0
|
||||||
upgrade=1
|
upgrade=1
|
||||||
upgrade=1 from_commit=22445f018b70ed1a89593107afff498b672f93ad
|
# upgrade=1 from_commit=4a9e25900da812c232a19d90ce037d099d8417f5
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
port_already_use=0
|
port_already_use=0
|
||||||
|
@ -24,6 +24,7 @@
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=22445f018b70ed1a89593107afff498b672f93ad
|
# Disabled because YunoHost 11 does not ship python3.7 anymore
|
||||||
name=2022-01-13 v1.0.1~ynh1
|
; commit=4a9e25900da812c232a19d90ce037d099d8417f5
|
||||||
|
name=2022-03-31 v1.0.1~ynh3
|
||||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Automated subtitle downloading for Sonarr and Radarr",
|
"en": "Automated subtitle downloading for Sonarr and Radarr",
|
||||||
"fr": "Téléchargement automatique de sous-titres pour Sonarr et Radarr"
|
"fr": "Téléchargement automatique de sous-titres pour Sonarr et Radarr"
|
||||||
},
|
},
|
||||||
"version": "1.0.1~ynh3",
|
"version": "1.1.0~ynh1",
|
||||||
"url": "https://bazarr.media",
|
"url": "https://bazarr.media",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
Loading…
Add table
Reference in a new issue