Skip to content

Implemented auto generation of directory tree structure #24

Implemented auto generation of directory tree structure

Implemented auto generation of directory tree structure #24

# This is a basic workflow that is manually triggered
name: Directory Tree Generator
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
pull_request:
branches:
- 'nextjs'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
generate-directory-tree:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Generate File Tree
# working-directory: ./Deep-Learning-Playground
run: |
pip install regex
python ./file_tree_generator.py
echo $?
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Add changes"
git pull
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}