File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,12 @@ jobs:
119119 update_script="$GITHUB_WORKSPACE/update-scripts/version/$PACKAGE_TO_UPGRADE"
120120 if test -f "$update_script"
121121 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
123128 else
124129 sed -i \
125130 -e "s/^\\(pkgver=\\).*/\\1$UPGRADE_TO_VERSION/" \
Original file line number Diff line number Diff line change 1111
1212 let [ , basever , patchlevel ] = version . match ( / ^ ( \d + \. \d + ) \. ( \d + ) / )
1313 let match
14-
14+
1515 const fs = require ( 'fs' )
1616 const lines = fs . readFileSync ( 'PKGBUILD' ) . toString ( 'utf-8' ) . split ( / \r ? \n / )
1717 lines . forEach ( ( line , i ) => {
Original file line number Diff line number Diff line change @@ -76,4 +76,6 @@ if test -n "$update_pkgver"
7676then
7777 git reset --soft HEAD^ &&
7878 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