git : git stash #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: directory list | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Append directory tree to README | |
| run: | | |
| sudo apt-get install tree | |
| sudo rm -rf README.md | |
| touch README.md | |
| git add README.md | |
| echo -e "# study notes \n## My personal study organization note " > README.md | |
| tree --dirsfirst --noreport -I README.md | sed 's/^/ /' >> README.md | |
| - name: push | |
| run: | | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "GitHub Actions" | |
| git add . | |
| git commit -m "Update README with directory list" | |
| git push origin main |