@@ -53,7 +53,7 @@ svn update --set-depth infinity trunk
53
53
echo " ➤ Copying files..."
54
54
if [ " $IGNORE_OTHER_FILES " = true ]; then
55
55
# Copy readme.txt to /trunk
56
- cp " $GITHUB_WORKSPACE /$README_NAME " trunk/$README_NAME
56
+ cp " $GITHUB_WORKSPACE /$README_NAME " " trunk/$README_NAME "
57
57
58
58
# Use $TMP_DIR as the source of truth
59
59
TMP_DIR=$GITHUB_WORKSPACE
127
127
128
128
echo " ➤ Preparing files..."
129
129
130
+ # Maybe revert composer changes in the vendor directory.
131
+ # This is needed because composer dynamically generates files using hashing.
132
+ # In reality, the files are not changed, but SVN thinks they are and processing will be stopped.
133
+
134
+ # Check if vendor/composer has changes
135
+ if [[ -n $( svn stat trunk/vendor/composer) ]]; then
136
+ echo " ℹ︎ Reverting changes in vendor/composer directory"
137
+ svn revert --depth=infinity trunk/vendor/composer
138
+ fi
139
+
140
+ # Check if vendor/autoload.php has changes
141
+ if [[ -n $( svn stat trunk/vendor/autoload.php) ]]; then
142
+ echo " ℹ︎ Reverting changes to vendor/autoload.php"
143
+ svn revert trunk/vendor/autoload.php
144
+ fi
145
+
130
146
svn status
131
147
132
148
if [[ -z $( svn stat) ]]; then
@@ -168,7 +184,7 @@ svn add . --force > /dev/null
168
184
# Also suppress stdout here
169
185
svn status | grep ' ^\!' | sed ' s/! *//' | xargs -I% svn rm %@ > /dev/null
170
186
171
- # Resolves => SVN commit failed: Directory out of date
187
+ # Resolves => SVN commit failed: Directory out of date
172
188
svn update
173
189
174
190
# Now show full SVN status
0 commit comments