Skip to content

Commit

Permalink
Match from the beginning of line when validating Yarn version
Browse files Browse the repository at this point in the history
  • Loading branch information
lzm0 committed May 21, 2024
1 parent d933fd8 commit a17c40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ runs:
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
if yarn --version | grep -q '1\.'; then
if yarn --version | grep -q '^1\.'; then
echo "::error ::Yarn Classic (1.x) is not supported. Please upgrade to Yarn Berry."
exit 1
fi
Expand Down

0 comments on commit a17c40d

Please sign in to comment.