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:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Run talk-update
|
|
|
|
run: |
|
|
|
|
# Spreed
|
|
|
|
spreed_version="$(
|
|
|
|
git ls-remote https://github.com/nextcloud/spreed v*.*.* \
|
|
|
|
| cut -d/ -f3 \
|
|
|
|
| sort -V \
|
|
|
|
| grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$" \
|
|
|
|
| tail -1
|
|
|
|
)"
|
2023-06-15 20:57:37 +08:00
|
|
|
sed -i "s|^ENV RECORDING_VERSION.*$|ENV RECORDING_VERSION $spreed_version|" ./Containers/talk-recording/Dockerfile
|
2023-06-06 15:22:33 +08:00
|
|
|
curl -L "https://raw.githubusercontent.com/nextcloud/spreed/$spreed_version/recording/server.conf.in" -o Containers/talk-recording/recording.conf
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v5
|
|
|
|
with:
|
|
|
|
commit-message: talk-update automated change
|
|
|
|
signoff: true
|
|
|
|
title: talk update
|
|
|
|
body: Automated talk container update
|
|
|
|
labels: dependencies, 3. to review
|
|
|
|
milestone: next
|
|
|
|
branch: talk-container-update
|