aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorMichael C <[email protected]>2021-11-30 16:44:42 -0500
committerMichael C <[email protected]>2021-11-30 18:17:28 -0500
commitdc47b9ffd2049e8a11e566dbf2753fbe59e17465 (patch)
tree842914e8fd12dfb2ec21b9f84e623482ac08e084 /.github
parente4e453a11c776bb4127e07252f868c3e54e3e386 (diff)
downloadSponsorBlock-dc47b9ffd2049e8a11e566dbf2753fbe59e17465.tar.gz
SponsorBlock-dc47b9ffd2049e8a11e566dbf2753fbe59e17465.zip
appease CI/ webpack
move to ci/ change triggers
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/updateInvidous.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/updateInvidous.yml b/.github/workflows/updateInvidous.yml
new file mode 100644
index 00000000..f43142c7
--- /dev/null
+++ b/.github/workflows/updateInvidous.yml
@@ -0,0 +1,32 @@
+name: update invidious
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '0 0 1 * *' # check every month
+
+jobs:
+ check-list:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Download instance list
+ run: |
+ wget https://api.invidious.io/instances.json -O data.json
+ - name: "Run CI"
+ run: npm run ci:invidious
+ - name: setup git config
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+ - name: "Commit new files"
+ run : |
+ if [ $(git status --porcelain=v1 2>/dev/null | wc -l) -ge 1 ]
+ then
+ echo "pushing changes"
+ git add invidiouslist.json
+ git commit -m "[CI] New Invidious List"
+ git push origin main
+ else
+ echo "no changes"
+ fi \ No newline at end of file