aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2021-12-28 14:50:12 -0500
committerAjay <[email protected]>2021-12-28 14:50:12 -0500
commit6aa1665d7cf7b9aa01e97f999c80ae4dc5874f50 (patch)
tree991667dbfcfa579ca3f9ffcda8f8116afb29dbd4
parente16aae393fc73be147d863247a40a8f0f8a4e0e2 (diff)
downloadSponsorBlock-6aa1665d7cf7b9aa01e97f999c80ae4dc5874f50.tar.gz
SponsorBlock-6aa1665d7cf7b9aa01e97f999c80ae4dc5874f50.zip
Create pull request for invidious list instead of commit
-rw-r--r--.github/workflows/updateInvidous.yml24
1 files changed, 9 insertions, 15 deletions
diff --git a/.github/workflows/updateInvidous.yml b/.github/workflows/updateInvidous.yml
index f43142c7..50bb9769 100644
--- a/.github/workflows/updateInvidous.yml
+++ b/.github/workflows/updateInvidous.yml
@@ -15,18 +15,12 @@ jobs:
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
+
+ - name: Create pull request to update list
+ uses: peter-evans/create-pull-request@v3
+ with:
+ commit-message: Update Invidious List
+ author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
+ branch: ci/update_invidious_list
+ title: Update Invidious List
+ body: Automated Invidious list update \ No newline at end of file