diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index ab8bc281..fd384ab5 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -82,7 +82,7 @@ jobs: script: | const version = context.ref.replace('refs/tags/v', ''); const branch = `release-${version}`; - const base = 'main'; // или другая основная ветка + const base = 'main'; const prs = await github.rest.pulls.list({ owner: context.repo.owner, @@ -97,7 +97,7 @@ jobs: repo: context.repo.repo, head: branch, base: base, - title: `Release ${version}`, + title: `${version}`, body: `This PR prepares the release \`${version}\`.`, draft: true }); @@ -124,7 +124,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, tag_name: tag, - name: `Release ${tag}`, + name: `${tag}`, draft: true, prerelease: false }); @@ -134,6 +134,8 @@ jobs: - name: Upload assets if: steps.check_release.outputs.skip == 'false' run: make upload_assets + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Delete pushed tag if: steps.check_release.outputs.skip == 'false'