Skip to content

Commit 3155193

Browse files
author
Dorazil
committed
Clean cache before init app
1 parent d4f026c commit 3155193

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ jobs:
9595
runs-on: self-hosted
9696
needs: workdir
9797
steps:
98+
- name: Clean workspace
99+
shell: bash
100+
run: |
101+
shopt -s dotglob
102+
rm -rf -- * || true
103+
shopt -u dotglob
98104
- name: Download workdir
99105
uses: actions/download-artifact@v4
100106
with:

build.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@
253253
</target>
254254

255255
<target name="app-init">
256-
<!-- Create config.local.neon -->
256+
257257
<copy file="app/config/config.sample.local.neon" tofile="app/config/config.local.neon"/>
258258

259+
<exec command="bin/console nette:cache:purge" passthru="true" checkreturn="false"/>
259260
<!-- Install dependencies -->
260261
<exec command="composer install" passthru="true" checkreturn="true"/>
261262
<exec command="yarn install" passthru="true" checkreturn="true"/>
@@ -264,6 +265,7 @@
264265
<exec command="yarn build" passthru="true" checkreturn="true"/>
265266

266267
<!-- Prepare database schema -->
268+
<exec command="bin/console migrations:drop-all-tables-views --no-interaction" passthru="true" checkreturn="true"/>
267269
<exec command="bin/console migrations:migrate --no-interaction" passthru="true" checkreturn="true"/>
268270
</target>
269271
</project>

0 commit comments

Comments
 (0)