diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ce4fc5f..c8725c7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -298,11 +298,12 @@ jobs: require_scope: false - name: Check PR title length + env: + TITLE: ${{ github.event.pull_request.title }} run: | - title="${{ github.event.pull_request.title }}" - title_length=${#title} + title_length=${#TITLE} if [ $title_length -gt 72 ] then echo "PR title is too long (greater than 72 characters)" exit 1 - fi \ No newline at end of file + fi