Optional
A platform produces data continuously: it will add files to a project already described. This block shows what happens then.
-
Add the fourth file to the node, in
names:depot.yaml - source: zenodobrowse:path: [24343971]names: [README.md, stations.csv, mesures.csv, dictionnaire.csv] -
See what changes:
Fenêtre de terminal madbot-cli plan depot.yaml= node 'Stream water quality': unchangedsource zenodo+ link dictionnaire.csv [24343971/dictionnaire.csv]= 3 data linked= submission 'Stream water quality': deposited (submitted)= 3 data in the submission= DOI: doi:10.82233/…! 1 data selected are not in the deposit: dictionnaire.csvA deposit cannot be updated yet: give them a new submission, under another title.Two things to read:
- only the new file is to be linked: the other three are unchanged;
- the submission takes every data of the node (
all: true), but it is already deposited: madbot cannot update a deposit made in a repository yet. The new file would go in a new submission, under another title.
-
Apply:
Fenêtre de terminal madbot-cli apply depot.yamlDone: 1 change, 0 failures, 0 submissions sent.node 'Stream water quality': 4 data readsubmission 'Stream water quality': submitted
Checkpoint
Section titled “Checkpoint”To go further
Section titled “To go further”-
A second submission: add under
submissionsa submission with another title, the samerepositoryblock, its metadata, and the new file as its only data:data:- source: zenodonames: [dictionnaire.csv]then
apply --submit. -
Machine-readable output:
madbot-cli plan depot.yaml --jsonandmadbot-cli apply depot.yaml --jsongive the same content as JSON, for a tool to read. -
The exit status, that a script or a continuous integration pipeline can test:
0when everything went well,1when an object failed (a data not read, a submission refused, an error of the API),2when the file or a setting is invalid, and nothing was sent. Trymadbot-cli plan depot.yaml; echo $?.

