From 4158834d84d74f5083dba0696b80b3bd8337363c Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Mon, 15 Jul 2024 20:55:57 +0100 Subject: [PATCH] Check for changes since last tag --- .github/workflows/create-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 6f55153..ec1080f 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -19,9 +19,9 @@ jobs: - name: Changes since last tag id: changes - uses: jsmith/changes-since-last-tag@v0.4.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + CHANGES=${git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline) + if [ -z "$CHANGES" ]; then exit 1; else exit 1; fi - name: Bump version and push tag if: steps.changes.outputs.any_changed == 'true'