From 04e0bc6ccbf4fac67ef15e75ac8023c68da6ba41 Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 1 Jan 2024 20:47:58 +0100 Subject: [PATCH] Forgejo Actions Debugging --- .forgejo/workflows/build+release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 612f5d4..42a816a 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -35,9 +35,8 @@ jobs: - name: Check if Version in package.json matches Tag run: | - echo "Test" - VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" ) - if test $VERSION != "${{ github.ref_name }}"; then + VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " ) + if test $VERSION != "${{ github.ref_name }}"; then echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"; exit 1 else @@ -68,7 +67,8 @@ jobs: else echo "latest=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:latest" >> "$GITHUB:OUTPUT"; fi - echo "version=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}" >> "$GITHUB:OUTPUT"; + echo ${{ github.ref_name }} + echo "version=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}" >> "$GITHUB:OUTPUT"; - name: Push to Package Registry uses: docker/build-push-action@v5