Skip to content

Commit

Permalink
feat: validate downloaded file after saved changes for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonPaulGithub committed Mar 14, 2024
1 parent fa716fd commit 661e824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 661e824

Please sign in to comment.