From a4086feee00ab78743426b222b1ad2b42da41a2f Mon Sep 17 00:00:00 2001 From: stirelshka8 Date: Sat, 20 Jul 2024 10:55:04 +0300 Subject: [PATCH] UPD CDCI 3 --- .gitea/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index b4dc601..9ed3ce9 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -27,8 +27,14 @@ jobs: aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./install_agent.sh s3://release - name: Create version file - run: | - echo ${{ github.ref/refs\/tags\// }} > versionagent.txt + run: | + TAG="${{ github.ref }}" + echo "$TAG" + TAG="${TAG#refs/tags/}" + echo "$TAG" + TAG="${TAG#v" + echo "$TAG" + echo "$TAG" > versionagent.txt aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./versionagent.txt s3://doc