From 49af40b22474e2a12d2ca8781d137a98555a7f26 Mon Sep 17 00:00:00 2001 From: Yanis <35189056+Yanis42@users.noreply.github.com> Date: Tue, 28 May 2024 18:27:18 +0200 Subject: [PATCH] Update format.yml --- .github/workflows/format.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index cb1af71b86..0072ae52f0 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -23,7 +23,7 @@ jobs: run: python tools/check_format.py check-pr: - if: ${{ github.event_name != 'push' }} + if: ${{ github.event_name == 'pull_request' }} name: Check modified files runs-on: ubuntu-latest steps: @@ -38,5 +38,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt + git remote add upstream https://github.com/HackerN64/HackerOoT.git + git fetch upstream - name: Check file's formatting - run: python tools/check_format.py --verbose --compare-to origin/develop/2.1.0 + run: python tools/check_format.py --verbose --compare-to upstream/develop/2.1.0