Remove the prettified format and only push the directory tree changes #7
This file contains 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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checking out | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Tree README | |
uses: RavelloH/[email protected] | |
with: | |
showsize: "no" | |
- name: commit | |
continue-on-error: True | |
run: | | |
git init | |
git pull | |
git config --local user.email "[email protected]" | |
git config --local user.name "github-actions" | |
git add . | |
git commit -m "[Readme-Tree]`date '+%Y-%m-%d %H:%M:%S'`" || exit | |
git status | |
git push -f |