diff --git a/.github/workflows/build-project.yml b/.github/workflows/build-project.yml index c45b02d2..d14ac80d 100644 --- a/.github/workflows/build-project.yml +++ b/.github/workflows/build-project.yml @@ -8,7 +8,7 @@ on: jobs: build: - if: github.event.pull_request.requested_reviewers[0] != null + if: github.event.pull_request.draft == false || github.event.pull_request == null runs-on: ubuntu-latest steps: - name: Install ARM Toolchain @@ -22,8 +22,5 @@ jobs: - run: pip install pros-cli - name: Checkout uses: actions/checkout@v4 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - name: Build Project run: pros make clean all \ No newline at end of file diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 21af385e..de38ccb8 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -1,13 +1,13 @@ name: Clang Format on: - pull_request: + pull_request_review: types: - - closed + - submitted jobs: format: - if: github.event.pull_request.merged == true + if: github.event.review.state == 'APPROVED' runs-on: ubuntu-latest steps: - name: Checkout