File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -62,22 +62,23 @@ jobs:
62
62
- name : Update formula
63
63
if : env.UPDATE_NEEDED == 'true'
64
64
run : |
65
- sed -i "1i # Formula last updated on $(date)" Formula/fpm.rb
66
65
sed -i "s|url \".*\"|url \"https://github.com/fortran-lang/fpm/releases/download/${LATEST_VERSION_V}/fpm-${LATEST_VERSION}.zip\"|" Formula/fpm.rb
67
66
sed -i "s|sha256 \".*\"|sha256 \"${SHA256}\"|" Formula/fpm.rb
67
+ echo "# Formula last updated on $(date +'%Y-%m-%d %H:%M:%S')" >> Formula/fpm.rb
68
68
69
69
- name : Commit changes
70
70
if : env.UPDATE_NEEDED == 'true'
71
71
run : |
72
72
git config --global user.name "GitHub Actions"
73
73
git config --global user.email "[email protected] "
74
74
git add Formula/fpm.rb
75
+ git status # Check if any files are staged for commit
75
76
git commit -m "Update fpm to ${LATEST_VERSION}"
76
77
77
78
- name : Push changes to branch
78
79
if : env.UPDATE_NEEDED == 'true'
79
80
run : |
80
- git push origin "${ BRANCH_NAME}"
81
+ git push origin ${{ env. BRANCH_NAME }}
81
82
82
83
- name : Create Pull Request
83
84
if : env.UPDATE_NEEDED == 'true'
Original file line number Diff line number Diff line change
1
+ # Formula last updated on 2025-03-10
2
+
1
3
class Fpm < Formula
2
4
desc "Fortran Package Manager (fpm)"
3
5
homepage "https://fpm.fortran-lang.org"
You can’t perform that action at this time.
0 commit comments