From b6363ca61d521dd2d7aef57aef4b22a4f618ba6d Mon Sep 17 00:00:00 2001 From: Franjo Mindek Date: Wed, 12 Nov 2025 11:55:46 +0100 Subject: [PATCH 1/2] test 1 --- .github/workflows/check-diffs.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/check-diffs.yml diff --git a/.github/workflows/check-diffs.yml b/.github/workflows/check-diffs.yml new file mode 100644 index 000000000..a93f34760 --- /dev/null +++ b/.github/workflows/check-diffs.yml @@ -0,0 +1,33 @@ +name: Check `opensaas-sh` diffs are up to date + +on: + pull_request: + push: + branches: + - main + +jobs: + check-diffs: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install deps + run: | + sudo apt-get update + sudo apt-get install -y diffutils coreutils + + - name: Generate diffs + run: | + ./opensaas-sh/tools/patch.sh + ./opensaas-sh/tools/diff.sh + + - name: Check for uncommitted changes + run: | + if [[ -n $(git status --porcelain) ]]; then + echo "Error: There are uncommitted diff changes" + echo "Please run './opensaas-sh/tools/patch.sh' and './opensaas-sh/tools/diff.sh' locally and commit the changes" + git status + exit 1 + fi From 42bf8f198478c03f871fe5069127624fb4db9526 Mon Sep 17 00:00:00 2001 From: Franjo Mindek Date: Wed, 12 Nov 2025 11:58:01 +0100 Subject: [PATCH 2/2] add diff --- .github/workflows/check-diffs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-diffs.yml b/.github/workflows/check-diffs.yml index a93f34760..586d5ec34 100644 --- a/.github/workflows/check-diffs.yml +++ b/.github/workflows/check-diffs.yml @@ -29,5 +29,6 @@ jobs: echo "Error: There are uncommitted diff changes" echo "Please run './opensaas-sh/tools/patch.sh' and './opensaas-sh/tools/diff.sh' locally and commit the changes" git status + git diff exit 1 fi