mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 14:17:18 +00:00
fix(release): preserve tags when publishing draft releases (#11199)
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -62,7 +62,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Validate and pin draft release
|
- name: Validate and pin draft release
|
||||||
id: draft
|
id: draft
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
TAG_NAME: ${{ inputs.tag }}
|
TAG_NAME: ${{ inputs.tag }}
|
||||||
with:
|
with:
|
||||||
@@ -107,6 +107,7 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
release_id: release.id,
|
release_id: release.id,
|
||||||
|
tag_name: process.env.TAG_NAME,
|
||||||
target_commitish: context.sha,
|
target_commitish: context.sha,
|
||||||
});
|
});
|
||||||
core.setOutput('release_id', release.id);
|
core.setOutput('release_id', release.id);
|
||||||
@@ -210,7 +211,7 @@ jobs:
|
|||||||
--tag "${IMAGE}:latest"
|
--tag "${IMAGE}:latest"
|
||||||
|
|
||||||
- name: Publish reviewed draft release
|
- name: Publish reviewed draft release
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
RELEASE_ID: ${{ needs.validate.outputs.release_id }}
|
RELEASE_ID: ${{ needs.validate.outputs.release_id }}
|
||||||
TAG_NAME: ${{ inputs.tag }}
|
TAG_NAME: ${{ inputs.tag }}
|
||||||
@@ -252,5 +253,7 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
release_id: Number(process.env.RELEASE_ID),
|
release_id: Number(process.env.RELEASE_ID),
|
||||||
|
tag_name: process.env.TAG_NAME,
|
||||||
|
target_commitish: context.sha,
|
||||||
draft: false,
|
draft: false,
|
||||||
});
|
});
|
||||||
@@ -41,6 +41,9 @@ it('requires a reviewed draft release before building a stable version', functio
|
|||||||
->toContain('release.body?.trim()')
|
->toContain('release.body?.trim()')
|
||||||
->toContain('bootstrap/getVersion.php')
|
->toContain('bootstrap/getVersion.php')
|
||||||
->toContain('target_commitish: context.sha')
|
->toContain('target_commitish: context.sha')
|
||||||
|
->toContain('tag_name: process.env.TAG_NAME')
|
||||||
|
->toContain('actions/github-script@v8')
|
||||||
|
->not->toContain('actions/github-script@v7')
|
||||||
->not->toContain('generate-notes');
|
->not->toContain('generate-notes');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user