Skip to content

dependency-updates #949

dependency-updates

dependency-updates #949

name: dependency-updates
on:
push:
branches:
- develop
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
peertube-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: update peertube version
id: update
run: |
PT_VERSION="$(
git ls-remote --tags https://github.com/Chocobozzz/PeerTube \
| cut -d/ -f3 \
| sort -V \
| tail -1 \
| sed "s|\^{}||g"
)"
sed -i "s|PT_VERSION=.*|PT_VERSION=$PT_VERSION \\\|" ./Dockerfile
echo "version=$PT_VERSION" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
signoff: true
delete-branch: true
commit-message: update peertube version to ${{ steps.update.outputs.version }}
branch: update-peertube-version
title: update peertube version to ${{ steps.update.outputs.version }}
body: update peertube version to ${{ steps.update.outputs.version }}