2023-11-22 03:24:38 +08: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
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
cache: "yarn"
|
|
|
|
|
|
|
|
- name: Install Deps
|
|
|
|
run: "yarn install --frozen-lockfile"
|
|
|
|
|
|
|
|
- name: Fetch Jitsi
|
|
|
|
run: "yarn update:jitsi"
|
|
|
|
|
|
|
|
- name: Create Pull Request
|
2024-05-15 18:23:48 +08:00
|
|
|
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6
|
2023-11-22 03:24:38 +08:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
|
branch: actions/jitsi-update
|
|
|
|
delete-branch: true
|
|
|
|
title: Jitsi Update
|
|
|
|
labels: |
|
|
|
|
T-Task
|