From 8b31a37ec97e1ac2133102f78140d2974791365e Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Tue, 11 Jun 2024 14:45:14 -0400 Subject: [PATCH] .github: only fetch the base branch when rebasing Update the "check commits" action to only fetch the base branch that we will be rebasing on. Otherwise every upstream branch is fetched. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a9217f555..b56df02af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -105,7 +105,7 @@ jobs: - name: fetch and rebase on ${{ github.base_ref }} run: | git remote add upstream https://github.com/${{ github.repository }} - git fetch upstream + git fetch upstream ${{ github.base_ref }}:refs/remotes/upstream/${{ github.base_ref }} export GIT_COMMITTER_EMAIL="lnd-ci@example.com" export GIT_COMMITTER_NAME="LND CI" git rebase upstream/${{ github.base_ref }}