Skip to content

Update Awesome Page #43

Update Awesome Page

Update Awesome Page #43

Workflow file for this run

name: Update Awesome Page
on:
schedule:
- cron: '0 0 */7 * *' # Every 7 days
workflow_dispatch: # Allow manual trigger
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Run update script
run: python app.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
- name: Commit and push changes
run: |
git config --global user.name "maheshndev"
git config --global user.email "github-actions@github.com"
git add .
git commit -m "Update awesome repos" || echo "No changes to commit"
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:main