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: |