update invidious #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update invidious | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' # check every month | |
jobs: | |
check-list: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Download instance lists | |
run: | | |
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 | |
- name: Install dependencies | |
run: npm ci | |
- name: "Run CI" | |
run: npm run ci:invidious | |
- name: Create pull request to update list | |
uses: peter-evans/create-pull-request@v7 | |
# v4.2.3 | |
with: | |
commit-message: Update Invidious List | |
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
branch: ci/update_invidious_list | |
title: Update Invidious List | |
body: Automated Invidious list update |