Skip to content

Commit ff9cac0

Browse files
committed
grep only first instance
1 parent 6892ae3 commit ff9cac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/fpm-version-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Extract current formula version
2626
id: get-current-version
2727
run: |
28-
CURRENT_VERSION="$(grep -oP 'url "https://github.com/fortran-lang/fpm/releases/download/v\K[0-9.]+' Formula/fpm.rb)"
28+
CURRENT_VERSION="$(grep -oP 'url "https://github.com/fortran-lang/fpm/releases/download/v\K[0-9.]+' Formula/fpm.rb | head -n 1)"
2929
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
3030
echo "Current version: ${CURRENT_VERSION}"
3131

0 commit comments

Comments
 (0)