Newer
Older
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Automatically regenerate files
on:
push:
paths:
- .github/workflows/generate-files-automatic.yml
- devscripts/make_mastodon_instance_list.py
- devscripts/make_peertube_instance_list.py
- devscripts/make_chrome_version_list.py
branches:
- master
schedule:
- cron: "0 2 * * 0"
workflow_dispatch:
inputs: {}
jobs:
generate:
runs-on: ubuntu-latest
env:
INSTANCE_SOCIAL_API_SECRET: ${{ secrets.INSTANCE_SOCIAL_API_SECRET }}
steps:
- uses: actions/checkout@v2
with:
ref: master
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Configure git
run: |
git config --global pull.rebase false
git config --global core.editor true
git config --global user.name nao20010128nao
git config --global user.email nao20010128@gmail.com
git config --unset http.https://github.com/.extraheader
git remote set-url origin https://nao20010128nao:${{ secrets.GH_PAT }}@github.com/nao20010128nao/ytdl-patched.git
- name: Generate youtube_dl/extractor/mastodon/instances.py
run: python ./devscripts/make_mastodon_instance_list.py
continue-on-error: true
- name: Generate youtube_dl/extractor/peertube/instances.py
run: python ./devscripts/make_peertube_instance_list.py
continue-on-error: true
- name: Generate youtube_dl/chrome_versions.py
run: python ./devscripts/make_chrome_version_list.py
continue-on-error: true
- name: Commit youtube_dl/extractor/mastodon/instances.py
run: git commit -m"[automatic] regenerate youtube_dl/extractor/mastodon/instances.py @ $(date +'%Y%m%d')" youtube_dl/extractor/mastodon/instances.py
continue-on-error: true
- name: Commit youtube_dl/extractor/peertube/instances.py
run: git commit -m"[automatic] regenerate youtube_dl/extractor/peertube/instances.py @ $(date +'%Y%m%d')" youtube_dl/extractor/peertube/instances.py
continue-on-error: true
- name: Commit youtube_dl/chrome_versions.py
run: git commit -m"[automatic] regenerate youtube_dl/chrome_versions.py @ $(date +'%Y%m%d')" youtube_dl/chrome_versions.py
continue-on-error: true
- name: Push to here
run: git push origin HEAD:master