File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,18 @@ jobs:
28
28
- name : Extract current formula version
29
29
id : get-current-version
30
30
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 )"
32
32
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> "$GITHUB_ENV"
33
33
echo "Current version: ${CURRENT_VERSION}"
34
34
35
35
- name : Compare versions
36
36
id : check-update
37
37
run : |
38
- if [ "${LATEST_VERSION}" != "${CURRENT_VERSION}" ]; then
38
+ if [ "${LATEST_VERSION}" != "${CURRENT_VERSION}" ] || [ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ] ; then
39
39
echo "New version available!"
40
40
echo "UPDATE_NEEDED=true" >> "$GITHUB_ENV"
41
41
else
42
+ echo "UPDATE_NEEDED=false" >> "$GITHUB_ENV"
42
43
echo "No update needed."
43
44
fi
44
45
80
81
- name : Create Pull Request
81
82
if : env.UPDATE_NEEDED == 'true'
82
83
id : create-pr
83
- uses : peter-evans/create-pull-request@v5
84
+ uses : peter-evans/create-pull-request@v6
84
85
with :
85
86
token : ${{ secrets.GITHUB_TOKEN }}
86
87
commit-message : " Update fpm to ${{ env.LATEST_VERSION }}"
You can’t perform that action at this time.
0 commit comments