2021-11-30 22:44:42 +01:00
|
|
|
name: update invidious
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 1 * *' # check every month
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-list:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-10-02 04:31:43 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-09 19:24:32 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-07-07 09:14:49 +02:00
|
|
|
- name: Download instance lists
|
2021-11-30 22:44:42 +01:00
|
|
|
run: |
|
2023-07-07 09:14:49 +02:00
|
|
|
wget https://api.invidious.io/instances.json -O ci/invidious_instances.json
|
|
|
|
wget https://github.com/TeamPiped/piped-uptime/raw/master/history/summary.json -O ci/piped_instances.json
|
2022-02-04 08:15:58 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
2021-11-30 22:44:42 +01:00
|
|
|
- name: "Run CI"
|
|
|
|
run: npm run ci:invidious
|
2021-12-28 20:50:12 +01:00
|
|
|
|
|
|
|
- name: Create pull request to update list
|
2024-10-02 04:43:30 +02:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2023-01-30 23:11:18 +01:00
|
|
|
# v4.2.3
|
2021-12-28 20:50:12 +01:00
|
|
|
with:
|
|
|
|
commit-message: Update Invidious List
|
2023-07-07 09:14:49 +02:00
|
|
|
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
2021-12-28 20:50:12 +01:00
|
|
|
branch: ci/update_invidious_list
|
|
|
|
title: Update Invidious List
|
|
|
|
body: Automated Invidious list update
|