Skip to content

fix : added readme generator python code #2

fix : added readme generator python code

fix : added readme generator python code #2

name: Update Directory Structure
on:
push:
branches:
- main # Adjust to your working branch
jobs:
generate-markdown:
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' # Adjust Python version as needed
- name: Run the Python script
run: |
python readme_generator.py
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Built-in GitHub token
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
# Add and commit the changes
git add README.md
git commit -m "Updated directory structure at $(date -u +'%Y-%m-%d %H:%M:%S') [skip ci]" || echo "No changes to commit"
# Push the changes using the built-in GITHUB_TOKEN
git push