Weekly Device List Updater #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to trigger donation post in tg channel every week | |
name: Weekly Device List Updater | |
on: | |
schedule: | |
- cron: "0 0 * * 1" | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
jobs: | |
cron: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Python dependencies | |
uses: py-actions/py-dependency-install@v3 | |
with: | |
path: "support/requirements.txt" | |
- name: Update Maintainers List | |
run: python3 support/Maintainers/Maintainers.py | |
- name: push changes to remote | |
run: | | |
git config --global user.name "heisinbug" | |
git config --global user.email "[email protected]" | |
git commit --allow-empty -am "Weekly Maintainers List Update" | |
git push | |
- uses: yanzay/[email protected] | |
if: always() | |
with: | |
chat: ${{ secrets.PRIVATECHAT }} | |
token: ${{ secrets.TOKEN }} | |
status: ${{ job.status }} |