Skip to content

Commit 2aed22c

Browse files
committed
Update fpm-version-update.yml
1 parent 709dd82 commit 2aed22c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Extract current formula version
2929
id: get-current-version
3030
run: |
31-
CURRENT_VERSION="$(grep -oP 'url "https://github.com/fortran-lang/fpm/releases/download/v\K[0-9.]+' Formula/fpm.rb)"
31+
CURRENT_VERSION="$(grep -oP 'url "https://github.com/fortran-lang/fpm/releases/download/v\K[0-9.]+' Formula/fpm.rb | head -n 1)"
3232
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> "$GITHUB_ENV"
3333
echo "Current version: ${CURRENT_VERSION}"
3434
@@ -80,7 +80,7 @@ jobs:
8080
- name: Create Pull Request
8181
if: env.UPDATE_NEEDED == 'true'
8282
id: create-pr
83-
uses: peter-evans/create-pull-request@v5
83+
uses: peter-evans/create-pull-request@v6
8484
with:
8585
token: ${{ secrets.GITHUB_TOKEN }}
8686
commit-message: "Update fpm to ${{ env.LATEST_VERSION }}"

0 commit comments

Comments
 (0)