Drop files from immediate storage after they have been pushed #43

Merged
mslw merged 2 commits from dropplain into master 2024-08-23 14:11:55 +00:00
2 changed files with 15 additions and 1 deletions

View file

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
python-version: [3.11]
steps:
- uses: actions/checkout@v2

View file

@ -306,6 +306,20 @@ def add_file_to_dataset(dataset_root: Path, file: Path, home: Path):
"HOME": str(home)
})
subprocess.run(
[
"datalad",
"drop",
"--what", "filecontent",
"-d", str(dataset_root),
str(file)
],
check=True,
env={
**os.environ,
"HOME": str(home)
})
return subprocess.run(
[
"git",