appease CI/ webpack

move to ci/
change triggers
This commit is contained in:
Michael C
2021-11-30 16:44:42 -05:00
parent e4e453a11c
commit dc47b9ffd2
6 changed files with 42 additions and 5 deletions

32
.github/workflows/updateInvidous.yml vendored Normal file
View File

@@ -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