Skip to content

Commit

Permalink
fix: 깃헙 액션에서 이전 커밋도 가져오도록 수정
Browse files Browse the repository at this point in the history
This2sho committed Apr 10, 2024
1 parent 11dee57 commit b9929d2
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -14,8 +14,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: 리포지토리를 가져옵니다
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: JDK 17을 설치합니다
uses: actions/setup-java@v4
@@ -35,6 +37,7 @@ jobs:
- name: 변경된 모듈을 체크한다.
id: check_changes
run: |
git fetch origin main
if git diff --name-only origin/main...HEAD | grep -q "^domain/"; then
echo "domain 모듈이 변경되었습니다."
echo "::set-output name=changes::domain_changed"
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,9 @@ jobs:

steps:
- name: 리포지토리를 가져옵니다
uses: actions/checkout@v4
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: JDK 17을 설치합니다
uses: actions/setup-java@v4
@@ -36,6 +38,7 @@ jobs:
- name: 변경된 모듈을 체크한다.
id: check_changes
run: |
git fetch origin main
if git diff --name-only origin/main...HEAD | grep -q "^domain/"; then
echo "domain 모듈이 변경되었습니다."
echo "::set-output name=changes::domain_changed"

0 comments on commit b9929d2

Please sign in to comment.