From 661e8249fe6e42293592b8785b40386b6b3dab5d Mon Sep 17 00:00:00 2001 From: Jason Paul Date: Thu, 14 Mar 2024 18:54:12 +0000 Subject: [PATCH] feat: validate downloaded file after saved changes for windows --- .github/workflows/merge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index aa4bedce62..2c5183452d 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -417,14 +417,14 @@ jobs: echo "upload the test document" cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources/test_doc.txt" --retry-strategy quick - echo "validate the test contains 1" - $condition = Get-Content .\test_doc.txt | ForEach-Object {$_ -Replace "[^0-9]", ""} + echo "validate the test document contains the number 1 in its alphabetic data" + $condition = Get-Content ./resources/test_doc.txt | ForEach-Object {$_ -Replace "[^0-9]", ""} if ( $condition -ne 1) { exit 1 } - # echo "add 2 and 3" + # echo "add the numbers 2 and 3" "23" >> "./resources/test_doc.txt" echo "upload the recently changed test document"