Skip to content

change space to /t

change space to /t #2

name: directory_writer
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
update-directory:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Generate DIRECTORY.md
run: |
python3 scripts/build_directory_md.py Mojo . .mojo > DIRECTORY.md
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add DIRECTORY.md
git diff --quiet && git diff --staged --quiet || git commit -m "docs: update DIRECTORY.md"
- name: Push changes
if: github.event_name == 'push'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}