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