Skip to content

Update update_readme.yml #13

Update update_readme.yml

Update update_readme.yml #13

Workflow file for this run

name: Update README with File Count
on:
push:
branches:
- main # Replace with your main branch name
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update README
run: |
chmod +x update_readme.sh
bash update_readme.sh
- name: Commit and push changes !
run: |
git config --global user.email "[email protected]"
git config --global user.name "LeeHyungJoo"
if [ -n "$(git status --porcelain)" ]; then
git add update_readme.sh
git add README.md
git commit -m "Update file count in README [skip ci]"
git push --force
else
echo "No changes to commit."
fi