Skip to content

Commit

Permalink
Build : 커밋 내용의 변화가 없을 시 워크플로우 중단
Browse files Browse the repository at this point in the history
  • Loading branch information
YubinShin authored Dec 13, 2023
1 parent 64bc37b commit 6fb2978
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/file_count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ jobs:
# README 업데이트
sed -i "/<!-- file_counts_start -->/,/<!-- file_counts_end -->/c\<!-- file_counts_start -->\n$bar_chart\n<!-- file_counts_end -->" README.md
- name: Check for Changes
id: git_check
run: |
git diff
git diff-index --quiet HEAD || echo "::set-output name=changes::true"
- name: Commit and Push README Updates
if: steps.git_check.outputs.changes == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
Expand Down

0 comments on commit 6fb2978

Please sign in to comment.