From adb45e3d33c041e4b589a4933df40f58df9d7955 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchenko Date: Mon, 5 Aug 2024 12:56:32 +0200 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 687deff..cabd613 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,6 +11,9 @@ on: release: types: [created] +permissions: + contents: write # Grant write permissions to the contents + jobs: build: runs-on: ubuntu-latest @@ -46,14 +49,18 @@ jobs: with: name: tradingview-to-ibkr + - name: Extract tag name + id: extract_tag + run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + - name: Create GitHub Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: ${{ env.TAG_NAME }} + release_name: Release ${{ env.TAG_NAME }} body: | Changes in this release: - List your changes here