fix(release): preserve tags when publishing draft releases (#11199)

This commit is contained in:
Andras Bacsai 2026-08-12 12:02:53 +02:00 committed by GitHub
commit ec7659aa59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -62,7 +62,7 @@ jobs:
- name: Validate and pin draft release
id: draft
uses: actions/github-script@v7
uses: actions/github-script@v8
env:
TAG_NAME: ${{ inputs.tag }}
with:
@ -107,6 +107,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.id,
tag_name: process.env.TAG_NAME,
target_commitish: context.sha,
});
core.setOutput('release_id', release.id);
@ -210,7 +211,7 @@ jobs:
--tag "${IMAGE}:latest"
- name: Publish reviewed draft release
uses: actions/github-script@v7
uses: actions/github-script@v8
env:
RELEASE_ID: ${{ needs.validate.outputs.release_id }}
TAG_NAME: ${{ inputs.tag }}
@ -252,5 +253,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: Number(process.env.RELEASE_ID),
tag_name: process.env.TAG_NAME,
target_commitish: context.sha,
draft: false,
});

View file

@ -41,6 +41,9 @@
->toContain('release.body?.trim()')
->toContain('bootstrap/getVersion.php')
->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');
});