[23주차 1] 2025 반디 플래너 제작 제안서 #117
Workflow file for this run
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: 10000-bagger Auto Markdown File Count Workflow | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
jobs: | |
build: | |
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: count files | |
run: | | |
python3 -m counter | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "binary-ho" | |
git add -u | |
if git diff --cached --quiet; then | |
echo "No changes to commit" | |
else | |
git commit -m "10000-bagger auto md file counter" | |
fi | |
- name: Push changes | |
run: | | |
git remote set-url origin https://[email protected]/10000-Bagger/free-topic-study.git | |
git push origin main |