From 05416f2299bcbe19d4691540e9f9ee235abac4cf Mon Sep 17 00:00:00 2001 From: William Findlay Date: Tue, 18 Feb 2025 10:56:51 -0500 Subject: [PATCH] ci/generated_files: change ref to ref_name Use `${{ github.ref_name }}` instead of `${{ github.ref }}` to hopefully finally fix an issue with the branch name passed to buf. Signed-off-by: William Findlay --- .github/workflows/generated-files.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generated-files.yaml b/.github/workflows/generated-files.yaml index 34b17661763..754d0ca36b0 100644 --- a/.github/workflows/generated-files.yaml +++ b/.github/workflows/generated-files.yaml @@ -22,7 +22,7 @@ jobs: # TODO: enable linting once we have a chance to fix the underlying issues # make -C api lint EXTRA_BUF_FLAGS="--error-format=github-actions" if ${{ github.event_name == 'push' }}; then - make -C api check-breaking EXTRA_BUF_FLAGS="--error-format=github-actions" BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.ref }}" + make -C api check-breaking EXTRA_BUF_FLAGS="--error-format=github-actions" BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.ref_name }}" else make -C api check-breaking EXTRA_BUF_FLAGS="--error-format=github-actions" BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.base_ref }}" fi @@ -44,7 +44,7 @@ jobs: run: | make generate if ${{ github.event_name == 'push' }}; then - make codegen BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.ref }}" + make codegen BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.ref_name }}" else make codegen BUF_BREAKING_AGAINST_BRANCH="origin/${{ github.base_ref }}" fi