ci/packaging: add missing rpkg.macros
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
4
rpkg.macros
Normal file
4
rpkg.macros
Normal file
@@ -0,0 +1,4 @@
|
||||
function git_commit_no {
|
||||
commits=$(curl -s 'https://api.github.com/repos/FreeCAD/FreeCAD/compare/120ca87015...master' | grep "ahead_by" | sed -s 's/ //g' | sed -s 's/"ahead_by"://' | sed -s 's/,//')
|
||||
echo -n $((commits + 1))
|
||||
}
|
||||
Reference in New Issue
Block a user