-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.23 KB
/
distribute.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Distribute Library
on:
workflow_run:
workflows: ["Unit test"]
types:
- completed
workflow_dispatch:
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout yt-dlp-tver
uses: actions/checkout@v2
with:
path: ./yt-dlp-tver
- name: Checkout TVer
uses: actions/checkout@master
with:
repository: kuriho/plugin.video.tver
token: ${{ secrets.PAT }}
path: ./tver
- name: Copy over
run: |
cp -R ./yt-dlp-tver/lib/** ./tver/lib/
- name: Get latest commit
run: |
echo "commit_upstream=$(git ls-remote https://github.com/yt-dlp/yt-dlp.git master | awk '{ print $1 }')" >> $GITHUB_ENV
- name: Release
run: |
cd ./tver
git init
git add -A
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "[CI] yt-dlp: ${{ env.commit_upstream }}"
git push