From 74c96eec79728ddba3907d167b08d427b279e6ab Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Thu, 2 Nov 2023 19:20:44 -0700 Subject: [PATCH] Version checking, try 2 --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5e62a3..c371df3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,10 +8,16 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Verify Version Bump + - name: Fetch Origin run: | + cd $GITHUB_WORKSPACE git fetch origin master - git diff --summary FETCH_HEAD version.scad | grep -q '^BOSL_VERSION' + + - name: Verify Version Change + run: | + cd $GITHUB_WORKSPACE + verstr=$(git diff --summary FETCH_HEAD version.scad | grep '^BOSL_VERSION') + [ "$verstr" != "" ] Regressions: runs-on: ubuntu-latest