From 129458ae6916e651a3165e4bc0b23a3edbf5cd09 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 11 Oct 2024 13:34:49 -0600 Subject: [PATCH] fix(ci): ref in backwards-compatibility-checks (#7728) --- .github/workflows/backwards-compatibility-checks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backwards-compatibility-checks.yaml b/.github/workflows/backwards-compatibility-checks.yaml index d70fede112d9..284f12f30e9e 100644 --- a/.github/workflows/backwards-compatibility-checks.yaml +++ b/.github/workflows/backwards-compatibility-checks.yaml @@ -69,7 +69,7 @@ jobs: # OwlBot PRs which are not labelled feat should not add new files or methods run: | ~/.composer/vendor/bin/roave-backward-compatibility-check \ - --from=${{ github.ref_name }} \ + --from=${{ github.head_ref || github.ref_name }} \ --to=origin/main --format=github-actions - name: "Print the action item" run: |