Skip to content

(scheduled) check updated plugins + readme #491

(scheduled) check updated plugins + readme

(scheduled) check updated plugins + readme #491

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@v3
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