diff --git a/.github/workflows/check-submodules.yml b/.github/workflows/check-submodules.yml index 29363f5c935f..c97bdf016b2c 100644 --- a/.github/workflows/check-submodules.yml +++ b/.github/workflows/check-submodules.yml @@ -37,7 +37,7 @@ jobs: run: | echo "C ${{ github.workflow }}-${{ github.event.number || github.sha }}" # Get the current branch or tag name - REF_NAME="${{ github.event.pull_request.head.ref }}" + REF_NAME="${{ github.event.pull_request.head.ref || github.ref_name }}" echo "Branch is:" $REF_NAME