Skip to content

Commit

Permalink
Use intermediary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Jan 13, 2023
1 parent 3a84c14 commit 458aa53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,10 @@ 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)"
Expand Down

0 comments on commit 458aa53

Please sign in to comment.