From 646c7c42c7cf74242c3217e2aa923afc1865e0fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Monniot?= Date: Sun, 11 Aug 2024 11:49:40 -0700 Subject: [PATCH] Try making it easier to see what version was published (#71) --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e33c72e..3ba1823 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,12 @@ jobs: - name: Check git diff if: ${{ failure() }} run: git diff + - name: Print published version + if: github.ref == 'refs/heads/main' + run: | + VERSION=$(sbt -no-colors 'inspect version' | grep "Setting: java.lang.String" | cut -d '=' -f2 | tr -d ' ') + echo '### Snapshot version' >> $GITHUB_STEP_SUMMARY + echo "version: $VERSION" >> $GITHUB_STEP_SUMMARY website: runs-on: ubuntu-latest