mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
Allow workflow to upload assets
This commit is contained in:
8
.github/workflows/tags.yaml
vendored
8
.github/workflows/tags.yaml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user