35
35
mingw-w64-git-lfs|mingw-w64-git-sizer|mingw-w64-wintoast|\
36
36
git-extra|git-for-windows-keyring) repo=build-extra;;
37
37
mingw-w64-*) repo=MINGW-packages;;
38
+ innosetup)
39
+ repo=build-extra &&
40
+ echo "package_path=installer" >>$GITHUB_ENV &&
41
+ echo "skip-deployment-check=true" >>$GITHUB_OUTPUT
42
+ ;;
38
43
*) repo=MSYS2-packages;;
39
44
esac &&
40
45
echo "REPO=$repo" >>$GITHUB_ENV &&
@@ -109,7 +114,7 @@ jobs:
109
114
id : update
110
115
shell : bash
111
116
run : |
112
- cd "/usr/src/$REPO/$PACKAGE_TO_UPGRADE" &&
117
+ cd "/usr/src/$REPO/${package_path-$ PACKAGE_TO_UPGRADE} " &&
113
118
update_script="$GITHUB_WORKSPACE/update-scripts/version/$PACKAGE_TO_UPGRADE"
114
119
if test -f "$update_script"
115
120
then
@@ -135,11 +140,12 @@ jobs:
135
140
updpkgsums
136
141
fi &&
137
142
msg="$PACKAGE_TO_UPGRADE: update to $UPGRADE_TO_VERSION" &&
138
- git add PKGBUILD &&
143
+ { test ! -f PKGBUILD || git add PKGBUILD; } &&
139
144
git commit -sm "$msg" &&
140
145
echo "msg=$msg" >>$GITHUB_OUTPUT &&
141
146
echo "modified=true" >>$GITHUB_OUTPUT
142
147
- name : check if the package was already deployed
148
+ if : steps.repo.outputs.skip-deployment-check != 'true'
143
149
shell : bash
144
150
run : |
145
151
./update-scripts/ensure-not-yet-deployed.sh "/usr/src/$REPO/$PACKAGE_TO_UPGRADE"
@@ -149,7 +155,7 @@ jobs:
149
155
run : |
150
156
auth="$(printf '%s:%s' '${{ steps.actor.outputs.login }}' '${{ steps.setup.outputs.token }}' | base64)" &&
151
157
echo "::add-mask::$auth" &&
152
- cd "/usr/src/$REPO/$PACKAGE_TO_UPGRADE" &&
158
+ cd "/usr/src/$REPO/${package_path-$ PACKAGE_TO_UPGRADE} " &&
153
159
git -c http.extraHeader="Authorization: Basic $auth" push --force origin HEAD:refs/heads/$PACKAGE_TO_UPGRADE-$UPGRADE_TO_VERSION
154
160
- name : open PR
155
161
if : steps.update.outputs.modified == 'true'
0 commit comments