Skip to content

Update Seperate steps to resolve nothing to commit #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

codeisneverodd
Copy link
Owner

README.md에 변경사항이 없으면 get diff 에서 끝나고,

- name: get diff
  id: get_diff
  run: |
    git diff --quiet ./README.md || echo "::set-output name=new_changes_exist::true"

변경사항이 있으면, update README.md 가 실행됩니다.

- name: update README.md
  if: steps.get_diff.outputs.new_changes_exist == 'true'
  run: |
    git add ./README.md
    git config user.name github-actions
    git config user.email [email protected]
    git commit -m "Automatic Update README.md"
    git push

그러므로 앞으로 README.md에 변경사항이 없을 시에도 ci build는 통과될 것입니다.

@codeisneverodd
Copy link
Owner Author

@cruelladevil 테스트 브랜치 확인 후 main에 적용하였습니다 👍

@codeisneverodd codeisneverodd merged commit 6eae698 into main Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants