Skip to content

Update Repos Table #791

Update Repos Table

Update Repos Table #791

name: Update Repos Table
on:
schedule:
- cron: "0 */6 * * *" # Har 6 hour mein run karega
workflow_dispatch: # Manual trigger allow kare
jobs:
update-table:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install requests
run: pip install requests
- name: Run script
run: python Py_Scripts/Repos_Table/create_repos_table.py
env:
REPO_TABLE: ${{ secrets.REPO_TABLE }} # Updated secret name
- name: Show modified files
run: git status
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add Py_Scripts/Repos_Table/REPO_TABLE.md
git commit -m 'Update repos table' || echo "Nothing to commit"
git push
env:
REPO_TABLE: ${{ secrets.REPO_TABLE }} # Updated secret name