2023-11-21 20:24:38 +01:00
|
|
|
# Re-fetches the Jitsi SDK and opens a PR to update it if it's different from what's in the repository
|
|
|
|
name: Update Jitsi
|
|
|
|
on:
|
|
|
|
workflow_dispatch: {}
|
|
|
|
schedule:
|
|
|
|
- cron: "0 3 * * 0" # 3am every Sunday
|
2024-11-20 16:44:02 +01:00
|
|
|
permissions: {} # We use ELEMENT_BOT_TOKEN instead
|
2023-11-21 20:24:38 +01:00
|
|
|
jobs:
|
|
|
|
update:
|
2024-10-17 12:10:32 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2023-11-21 20:24:38 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
cache: "yarn"
|
2024-07-04 15:26:58 +02:00
|
|
|
node-version: "lts/*"
|
2023-11-21 20:24:38 +01:00
|
|
|
|
|
|
|
- name: Install Deps
|
|
|
|
run: "yarn install --frozen-lockfile"
|
|
|
|
|
|
|
|
- name: Fetch Jitsi
|
|
|
|
run: "yarn update:jitsi"
|
|
|
|
|
|
|
|
- name: Create Pull Request
|
2024-09-19 19:18:55 +02:00
|
|
|
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
|
2023-11-21 20:24:38 +01:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
|
branch: actions/jitsi-update
|
|
|
|
delete-branch: true
|
|
|
|
title: Jitsi Update
|
|
|
|
labels: |
|
|
|
|
T-Task
|