From 219b4a5d174ccc84dc010374a31faae70f3945c6 Mon Sep 17 00:00:00 2001 From: Andrew Lu Date: Thu, 21 Mar 2024 20:19:22 -0400 Subject: [PATCH] Update Github Actions (#86) --- .github/workflows/build-project.yml | 5 +---- .github/workflows/clang-format.yml | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) 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