Skip to content

actions 2

actions 2 #11

Workflow file for this run

name: Index Files and Update README
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
build:
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: Run index script
run: python index_files.py
- 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 README.md
git commit -m 'Update file index in README'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}