Skip to content

Commit 24d466f

Browse files
authored
Update pipeline.yml
1 parent 79789a6 commit 24d466f

1 file changed

Lines changed: 13 additions & 23 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -96,29 +96,19 @@ jobs:
9696
cp -a coordinator/data/history/. work/history/ || true
9797
fi
9898
99-
- name: Select relations source
100-
id: relations
101-
run: |
102-
if [ "${{ github.event.inputs.use_fixture_data }}" = "true" ]; then
103-
REL="coordinator/testdata/relations"
104-
echo "Using fixture data: $REL"
105-
else
106-
REL="explorer/data/relations"
107-
echo "Using live Explorer relations: $REL"
108-
fi
109-
missing=0for f in persona_incarico_ente__incarichi_nominativi_shard.csv \
110-
awards__affidamenti_diretti.csv \
111-
cig_ente__affidamenti_diretti.csv; do
112-
if [ ! -f "$REL/$f" ]; then
113-
echo "::error::Missing required relation file: $REL/$f"
114-
missing=1
115-
fi
116-
done
117-
if [ "$missing" != 0 ]; then
118-
echo "::error::Fail-closed: required Explorer relation CSVs are missing."
119-
exit 1
120-
fi
121-
echo "path=$REL" >> "$GITHUB_OUTPUT"
99+
missing=0for f in persona_incarico_ente__incarichi_nominativi_shard.csv \
100+
awards__affidamenti_diretti.csv \
101+
cig_ente__affidamenti_diretti.csv; do
102+
if [ ! -f "$REL/$f" ]; then
103+
echo "::error::Missing required relation file: $REL/$f"
104+
missing=1
105+
fi
106+
done
107+
if [ "$missing" != 0 ]; then
108+
echo "::error::Fail-closed: required Explorer relation CSVs are missing."
109+
exit 1
110+
fi
111+
echo "path=$REL" >> "$GITHUB_OUTPUT"
122112

123113
- name: Step 1 — Adapt Explorer relations → generator input
124114
run: |

0 commit comments

Comments
 (0)