Skip to content

Commit

Permalink
Create schedule.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalexanninev15 authored Nov 4, 2024
1 parent cd09087 commit ef9f1da
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Getting a list of providers

on:
schedule:
- cron: '0 0 */2 * *'

jobs:
run_script:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: |
pip install requests
- name: Run Python script
run: python get_providers.py

- name: Commit and push changesОписание
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add providers.txt
git commit -m "Automatic update of the list of providers"
git push

0 comments on commit ef9f1da

Please sign in to comment.