2023-06-06 15:22:33 +08:00
|
|
|
name: talk-update
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '00 12 * * *'
|
|
|
|
|
|
|
|
jobs:
|
2023-06-06 16:28:19 +08:00
|
|
|
talk-update:
|
2023-06-06 15:22:33 +08:00
|
|
|
name: update talk
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 20:29:01 +08:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-16 18:43:49 +08:00
|
|
|
- name: Run talk-container-update
|
2023-06-06 15:22:33 +08:00
|
|
|
run: |
|
2023-11-16 18:43:49 +08:00
|
|
|
# Recording
|
|
|
|
recording_version="$(
|
|
|
|
git ls-remote https://github.com/nextcloud/nextcloud-talk-recording v* \
|
2023-06-06 15:22:33 +08:00
|
|
|
| cut -d/ -f3 \
|
|
|
|
| sort -V \
|
2023-11-16 21:42:00 +08:00
|
|
|
| grep -E "^v[0-9\.]+$" \
|
2023-06-06 15:22:33 +08:00
|
|
|
| tail -1
|
|
|
|
)"
|
2024-06-21 19:27:36 +08:00
|
|
|
sed -i "s|^ENV RECORDING_VERSION.*$|ENV RECORDING_VERSION=$recording_version|" ./Containers/talk-recording/Dockerfile
|
2023-11-16 18:43:49 +08:00
|
|
|
curl -L "https://raw.githubusercontent.com/nextcloud/nextcloud-talk-recording/$recording_version/server.conf.in" -o Containers/talk-recording/recording.conf
|
2023-06-06 15:22:33 +08:00
|
|
|
|
|
|
|
# Signaling
|
|
|
|
signaling_version="$(
|
|
|
|
git ls-remote https://github.com/strukturag/nextcloud-spreed-signaling v*.*.* \
|
|
|
|
| cut -d/ -f3 \
|
|
|
|
| sort -V \
|
|
|
|
| grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$" \
|
|
|
|
| tail -1
|
|
|
|
)"
|
|
|
|
curl -L "https://raw.githubusercontent.com/strukturag/nextcloud-spreed-signaling/$signaling_version/server.conf.in" -o Containers/talk/server.conf.in
|
|
|
|
|
2023-06-29 22:16:44 +08:00
|
|
|
# Janus
|
|
|
|
janus_version="$(
|
|
|
|
git ls-remote https://github.com/meetecho/janus-gateway v0.*.* \
|
|
|
|
| cut -d/ -f3 \
|
|
|
|
| sort -V \
|
|
|
|
| grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$" \
|
|
|
|
| tail -1
|
|
|
|
)"
|
|
|
|
sed -i "s|^ARG JANUS_VERSION=.*$|ARG JANUS_VERSION=$janus_version|" ./Containers/talk/Dockerfile
|
|
|
|
|
2023-06-06 15:22:33 +08:00
|
|
|
- name: Create Pull Request
|
2024-09-03 21:07:52 +08:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2023-06-06 15:22:33 +08:00
|
|
|
with:
|
|
|
|
commit-message: talk-update automated change
|
|
|
|
signoff: true
|
2023-11-16 18:43:49 +08:00
|
|
|
title: talk container update
|
2023-06-06 15:22:33 +08:00
|
|
|
body: Automated talk container update
|
|
|
|
labels: dependencies, 3. to review
|
|
|
|
milestone: next
|
|
|
|
branch: talk-container-update
|