[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
This commit is contained in:
Roxy
2026-07-04 19:53:36 +02:00
committed by GitHub
parent f6bf272fc6
commit 9ff1efa70a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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: |