Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit f441620

Browse files
authored
Merge pull request #43 from psychoinformatics-de/dropplain
Drop files from immediate storage after they have been pushed
2 parents 731faec + d3a15e6 commit f441620

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/run-server-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: [3.7]
12+
python-version: [3.11]
1313

1414
steps:
1515
- uses: actions/checkout@v2

server/store_data.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,20 @@ def add_file_to_dataset(dataset_root: Path, file: Path, home: Path):
306306
"HOME": str(home)
307307
})
308308

309+
subprocess.run(
310+
[
311+
"datalad",
312+
"drop",
313+
"--what", "filecontent",
314+
"-d", str(dataset_root),
315+
str(file)
316+
],
317+
check=True,
318+
env={
319+
**os.environ,
320+
"HOME": str(home)
321+
})
322+
309323
return subprocess.run(
310324
[
311325
"git",

0 commit comments

Comments
 (0)