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