embyserver latest version #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: embyserver latest version | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 3 */3 * *' | |
push: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/embyserver_latest_version.yml" | |
jobs: | |
get: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Get Version Amilys | |
run: | | |
docker run --entrypoint cp -v ${PWD}/emby:/data amilys/embyserver:latest /system/EmbyServer.deps.json /data | |
LATEST_VERSION=$(grep "EmbyServer" emby/EmbyServer.deps.json | head -n 1 | sed -n 's|.*EmbyServer/\(.*\)":.*|\1|p') | |
sed -i "1,40s|amilys_embyserver_latest_version=.*|amilys_embyserver_latest_version=${LATEST_VERSION}|" all_in_one.sh | |
- | |
name: Get Version Emby | |
run: | | |
docker run --entrypoint cp -v ${PWD}/emby:/data emby/embyserver:latest /system/EmbyServer.deps.json /data | |
LATEST_VERSION=$(grep "EmbyServer" emby/EmbyServer.deps.json | head -n 1 | sed -n 's|.*EmbyServer/\(.*\)":.*|\1|p') | |
sed -i "1,40s|emby_embyserver_latest_version=.*|emby_embyserver_latest_version=${LATEST_VERSION}|" all_in_one.sh | |
- | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'chore: update embyserver latest version' | |
branch: master | |
file_pattern: 'all_in_one.sh' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |