Skip to content

Commit

Permalink
Update Github Actions (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLuGit authored Mar 22, 2024
1 parent 4c2ea66 commit 219b4a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 219b4a5

Please sign in to comment.