From 9da4797070c91d18187fc4debe54ec4ccfe76614 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Fri, 23 Aug 2024 18:02:16 -0600 Subject: [PATCH] Stop running pull request workflow on `main` Instead of running the checks on `main`, I've opted to just rebase the current branch onto `main` as part of the workflow process so that I don't need to run checks twice, which starves CI resources and doubles the minutes I'd run tests on Firebase Test Lab --- .forgejo/workflows/pull_request.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.forgejo/workflows/pull_request.yml b/.forgejo/workflows/pull_request.yml index 77ad16a..7fd4bac 100644 --- a/.forgejo/workflows/pull_request.yml +++ b/.forgejo/workflows/pull_request.yml @@ -2,8 +2,6 @@ name: Build & Test on: pull_request: - push: - branches: [ main ] jobs: validate: @@ -11,6 +9,7 @@ jobs: name: Validate steps: - uses: actions/checkout@v4 + - run: git rebase origin/main - name: set up JDK uses: https://git.wbrawner.com/actions/setup-java@v4 with: