From 9ff1efa70aad6328f74ccaa2d9b34d29a1847ca9 Mon Sep 17 00:00:00 2001 From: Roxy <75404941+TealSeer@users.noreply.github.com> Date: Sat, 4 Jul 2026 13:53:36 -0400 Subject: [PATCH] [NO GBP] Change ref for GBP and auto changelog checkout (#96751) ## About The Pull Request Opening #96750 made me realize that using `github.base_ref` will fail if the targeted branch doesn't contain the files referenced later in the workflow (the `gbp-balances` repo is missing all the scripts invoked by those workflows), change the steps to instead check out the default branch of the repo because that makes more sense in the context of what the workflows are doing ## Why It's Good For The Game Workflows will still work even if the PR targets a branch that doesn't have the scripts ## Changelog N/A --- .github/workflows/auto_changelog.yml | 2 +- .github/workflows/gbp.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto_changelog.yml b/.github/workflows/auto_changelog.yml index a58575a3ec9..76ce725b3e4 100644 --- a/.github/workflows/auto_changelog.yml +++ b/.github/workflows/auto_changelog.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@v7 with: - ref: ${{ github.base_ref }} + ref: ${{ github.event.repository.default_branch }} - name: Generate App Token id: app-token-generation diff --git a/.github/workflows/gbp.yml b/.github/workflows/gbp.yml index 603e2d69f80..14d160c0604 100644 --- a/.github/workflows/gbp.yml +++ b/.github/workflows/gbp.yml @@ -14,7 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v7 with: - ref: ${{ github.base_ref }} + ref: ${{ github.event.repository.default_branch }} - name: Run Auto Labeler uses: actions/github-script@v9 with: @@ -44,7 +44,7 @@ jobs: if: steps.value_holder.outputs.ACTIONS_ENABLED uses: actions/checkout@v7 with: - ref: ${{ github.base_ref }} + ref: ${{ github.event.repository.default_branch }} - name: Setup git if: steps.value_holder.outputs.ACTIONS_ENABLED run: |