2021-10-11 15:34:32 +02:00
|
|
|
name: Sync Data From External Sources
|
|
|
|
on:
|
2023-08-23 09:20:04 +02:00
|
|
|
workflow_dispatch:
|
2021-10-11 15:34:32 +02:00
|
|
|
schedule:
|
|
|
|
# At 00:00 on every Monday UTC
|
|
|
|
- cron: '0 0 * * 1'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
sync-emojis:
|
|
|
|
runs-on: ubuntu-latest
|
2021-11-18 17:03:37 +01:00
|
|
|
# Skip in forks
|
2023-12-13 11:09:03 +01:00
|
|
|
if: github.repository == 'element-hq/element-android'
|
2022-02-24 17:48:30 +01:00
|
|
|
# No concurrency required, runs every time on a schedule.
|
2021-10-11 15:34:32 +02:00
|
|
|
steps:
|
2024-07-15 18:12:08 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-10-11 15:34:32 +02:00
|
|
|
- name: Set up Python 3.8
|
2022-06-14 01:05:19 +02:00
|
|
|
uses: actions/setup-python@v4
|
2021-10-11 15:34:32 +02:00
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install Prerequisite dependencies
|
|
|
|
run: |
|
|
|
|
pip install BeautifulSoup4
|
|
|
|
pip install requests
|
|
|
|
- name: Run Emoji script
|
|
|
|
run: ./tools/import_emojis.py
|
|
|
|
- name: Create Pull Request for Emojis
|
2023-04-11 12:07:31 +02:00
|
|
|
uses: peter-evans/create-pull-request@v5
|
2021-10-11 15:34:32 +02:00
|
|
|
with:
|
|
|
|
commit-message: Sync Emojis
|
|
|
|
title: Sync Emojis
|
|
|
|
body: |
|
|
|
|
- Update Emojis from Unicode.org
|
|
|
|
branch: sync-emojis
|
|
|
|
base: develop
|
|
|
|
|
|
|
|
sync-sas-strings:
|
|
|
|
runs-on: ubuntu-latest
|
2021-11-18 17:03:37 +01:00
|
|
|
# Skip in forks
|
2023-12-13 11:09:03 +01:00
|
|
|
if: github.repository == 'element-hq/element-android'
|
2022-02-24 17:48:30 +01:00
|
|
|
# No concurrency required, runs every time on a schedule.
|
2021-10-11 15:34:32 +02:00
|
|
|
steps:
|
2024-07-15 18:12:08 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-10-11 15:34:32 +02:00
|
|
|
- name: Set up Python 3.8
|
2022-06-14 01:05:19 +02:00
|
|
|
uses: actions/setup-python@v4
|
2021-10-11 15:34:32 +02:00
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install Prerequisite dependencies
|
|
|
|
run: |
|
|
|
|
pip install requests
|
|
|
|
- name: Run SAS String script
|
|
|
|
run: ./tools/import_sas_strings.py
|
|
|
|
- name: Create Pull Request for SAS Strings
|
2023-04-11 12:07:31 +02:00
|
|
|
uses: peter-evans/create-pull-request@v5
|
2021-10-11 15:34:32 +02:00
|
|
|
with:
|
|
|
|
commit-message: Sync SAS Strings
|
|
|
|
title: Sync SAS Strings
|
|
|
|
body: |
|
|
|
|
- Update SAS Strings from matrix-doc.
|
|
|
|
branch: sync-sas-strings
|
2021-11-29 17:27:05 +01:00
|
|
|
base: develop
|