From a3bbc098befe1bd43cf54f77baab916a44aa2c65 Mon Sep 17 00:00:00 2001 From: Sangelo Date: Mon, 3 Jun 2024 20:56:36 +0200 Subject: [PATCH] [e+c] fix build pipeline --- .forgejo/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 2161126..31ce409 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -30,10 +30,10 @@ jobs: - name: Update debug.json with Git info run: | - git rev-parse HEAD > commit_hash - git describe --tags --abbrev=0 > tag - sed -i "s|\"commit\": \"\"|\"commit\": \"$(cat commit_hash)\"|" static/assets/debug.json - sed -i "s|\"tag\": \"\"|\"tag\": \"$(cat tag)\"|" static/assets/debug.json + export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///') + export SHA=$(echo "${{ github.sha }}") + sed -i "s|\"commit\": \"\"|\"commit\": \"$SHA\"|" static/assets/debug.json + sed -i "s|\"tag\": \"\"|\"tag\": \"$TAG\"|" static/assets/debug.json - name: 🐋 Build Container run: |