Skip to content

fix : admin-access code fix #149

fix : admin-access code fix

fix : admin-access code fix #149

name: directory list
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Append directory tree to README
run: |
cd docs
sudo apt-get install tree
sudo rm -rf README.md
touch README.md
git add README.md
echo "# Docs " > README.md
tree --dirsfirst --noreport -I README.md | sed 's/^/ /' >> README.md
- name: or-push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
continue-on-error: true