mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-12 18:04:20 +01:00
Create pull request for invidious list instead of commit
This commit is contained in:
parent
e16aae393f
commit
6aa1665d7c
1 changed files with 9 additions and 15 deletions
24
.github/workflows/updateInvidous.yml
vendored
24
.github/workflows/updateInvidous.yml
vendored
|
@ -15,18 +15,12 @@ jobs:
|
||||||
wget https://api.invidious.io/instances.json -O data.json
|
wget https://api.invidious.io/instances.json -O data.json
|
||||||
- name: "Run CI"
|
- name: "Run CI"
|
||||||
run: npm run ci:invidious
|
run: npm run ci:invidious
|
||||||
- name: setup git config
|
|
||||||
run: |
|
- name: Create pull request to update list
|
||||||
git config user.name "github-actions[bot]"
|
uses: peter-evans/create-pull-request@v3
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
with:
|
||||||
- name: "Commit new files"
|
commit-message: Update Invidious List
|
||||||
run : |
|
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
||||||
if [ $(git status --porcelain=v1 2>/dev/null | wc -l) -ge 1 ]
|
branch: ci/update_invidious_list
|
||||||
then
|
title: Update Invidious List
|
||||||
echo "pushing changes"
|
body: Automated Invidious list update
|
||||||
git add invidiouslist.json
|
|
||||||
git commit -m "[CI] New Invidious List"
|
|
||||||
git push origin main
|
|
||||||
else
|
|
||||||
echo "no changes"
|
|
||||||
fi
|
|
Loading…
Reference in a new issue