From 15108e425cc80f607b6fadf0a7ba8a6c28233595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claudio=20Andr=C3=A9?= Date: Sun, 1 Dec 2024 09:48:27 -0300 Subject: [PATCH] ci(validate.yml): check checksum of files (#674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure that once important files are changed, their checksum is also updated. Signed-off-by: Claudio André --- .github/workflows/validate.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 14f2c30f..f9bc410f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -131,3 +131,13 @@ jobs: exit 1 fi done + + - name: Check checksums + run: | + cd scripts && sha256sum ./*.sh > ../requirements.hash && cd - + cd patches && sha256sum ./* >> ../requirements.hash && cd - + echo "You should keep checksums updated!" + echo "**********************************************************************" + git diff + echo "**********************************************************************" + git diff --quiet