-
Notifications
You must be signed in to change notification settings - Fork 16
59 lines (59 loc) · 1.87 KB
/
automatic_check_updates.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: (scheduled) check updated plugins + readme
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
on:
schedule:
- cron: '00 23 * * *'
# runs at 23:00 utc every day
# minute(0-59) / hour(0-23) / day of month(1-31) / month(1-12) / day of week(0-6)
jobs:
First:
name: check updated plugins + readme
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install beautifulsoup4 and Pillow
run: |
python3 -m pip install bs4
python3 -m pip install lxml
python3 -m pip install Pillow
- name: Check directlinks for updates
run: python res/src/checkdirectlinks.py
- name: Commit file
run: |
git config user.name "script"
git config user.email "<>"
git add 'res/news.txt' 'res/last_commits.txt' 'Working/'
git commit -m "Plugins updated" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
- name: Upload plugins to release
uses: ncipollo/[email protected]
with:
name: Downloads
tag: Latest
allowUpdates: true
replacesArtifacts: true
updateOnlyUnreleased: false
artifacts: "temp/*.zip"
- name: Make README.md
run: python res/src/makemd.py
- name: Commit file
run: |
git config user.name "script"
git config user.email "<>"
git add 'README.md' 'res/'
git commit -m "Plugin md generated" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
- name: Check for errors
run: python res/src/failworkflow.py