File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,12 @@ jobs:
119
119
update_script="$GITHUB_WORKSPACE/update-scripts/version/$PACKAGE_TO_UPGRADE"
120
120
if test -f "$update_script"
121
121
then
122
- $update_script "$UPGRADE_TO_VERSION"
122
+ $update_script "$UPGRADE_TO_VERSION" &&
123
+ if test -f UPGRADE_TO_VERSION
124
+ then
125
+ UPGRADE_TO_VERSION="$(cat UPGRADE_TO_VERSION)" &&
126
+ rm UPGRADE_TO_VERSION
127
+ fi
123
128
else
124
129
sed -i \
125
130
-e "s/^\\(pkgver=\\).*/\\1$UPGRADE_TO_VERSION/" \
Original file line number Diff line number Diff line change 11
11
12
12
let [ , basever , patchlevel ] = version . match ( / ^ ( \d + \. \d + ) \. ( \d + ) / )
13
13
let match
14
-
14
+
15
15
const fs = require ( 'fs' )
16
16
const lines = fs . readFileSync ( 'PKGBUILD' ) . toString ( 'utf-8' ) . split ( / \r ? \n / )
17
17
lines . forEach ( ( line , i ) => {
Original file line number Diff line number Diff line change @@ -76,4 +76,6 @@ if test -n "$update_pkgver"
76
76
then
77
77
git reset --soft HEAD^ &&
78
78
sed -i ' s/^pkgrel=.*/pkgrel=1/' PKGBUILD
79
- fi
79
+ fi &&
80
+ sed -n ' /^pkgver=/{:1;N;/pkgrel=/{s/.*pkgver=\([0-9\.]*\).*pkgrel=\([0-9]*\).*/\1-\2/p;q};b1}' \
81
+ < PKGBUILD > UPGRADE_TO_VERSION
You can’t perform that action at this time.
0 commit comments