diff --git a/.github/workflows/ci_gradle.yml b/.github/workflows/ci_gradle.yml index 0a2b0f0..74b9485 100644 --- a/.github/workflows/ci_gradle.yml +++ b/.github/workflows/ci_gradle.yml @@ -40,10 +40,3 @@ jobs: - name: Stop Docker Compose run: docker-compose -f docker-compose-test.yml down - - - name: Trigger Final Check - run: | - curl -X POST -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/dispatches \ - -d '{"event_type":"final_check", "client_payload": {"pull_request_number": ${{ github.event.pull_request.number }}}}' diff --git a/.github/workflows/dummy.yml b/.github/workflows/dummy.yml index 0aef82a..5968036 100644 --- a/.github/workflows/dummy.yml +++ b/.github/workflows/dummy.yml @@ -9,9 +9,4 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Trigger Final Check - run: | - curl -X POST -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/dispatches \ - -d '{"event_type":"final_check", "client_payload": {"pull_request_number": ${{ github.event.pull_request.number }}}}' + run: echo "Running CD workflow" diff --git a/.github/workflows/final.yml b/.github/workflows/final.yml deleted file mode 100644 index 89b8d70..0000000 --- a/.github/workflows/final.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Final Check - -on: - repository_dispatch: - types: [ final_check ] - - workflow_dispatch: # 수동 실행을 위해 추가 - -permissions: - contents: read - -jobs: - final-check: - runs-on: ubuntu-latest - - steps: - - name: Install GitHub CLI - run: | - curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null - sudo apt update - sudo apt install gh -y - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Get PR number - id: get_pr_number - run: echo "PR_NUMBER=${{ github.event.client_payload.pull_request_number }}" >> $GITHUB_ENV - - - name: Check Dummy and CI statuses - id: check-status - run: | - PR_NUMBER=${{ env.PR_NUMBER }} - DUMMY_STATUS=$(gh pr checks $PR_NUMBER | grep 'Dummy / build' | awk '{print $2}') - CI_STATUS=$(gh pr checks $PR_NUMBER | grep 'CI / build' | awk '{print $2}') - - if [[ "$DUMMY_STATUS" == "success" ]] || [[ "$CI_STATUS" == "success" ]]; then - echo "One or both checks have passed." - echo "status=success" >> $GITHUB_ENV - else - echo "Both checks failed." - echo "status=failure" >> $GITHUB_ENV - fi - - - name: Set final status success - if: env.status == 'success' - run: echo "Final status is success" - continue-on-error: true - - - name: Set final status failure - if: env.status == 'failure' - run: exit 1 diff --git a/README.md b/README.md index 961c6c1..e291f1f 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Spon-us(스포너스)는 대학생 단체와 기업 간의 협찬, 제휴, 그 - +