Skip to content

Commit 0b3943a

Browse files
authored
Merge pull request #35 from domaframework/ci/modify-timing-create-release-draft
Fix:Release draft generation is delegated to release-drafter
2 parents 704962e + 815df15 commit 0b3943a

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name-template: 'v$RESOLVED_VERSION 🌈'
2-
tag-template: 'v$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
33
categories:
44
- title: 'New Features'
55
labels:

.github/workflows/build.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -247,40 +247,3 @@ jobs:
247247
with:
248248
name: pluginVerifier-result
249249
path: ${{ github.workspace }}/build/reports/pluginVerifier
250-
251-
# Prepare a draft release for GitHub Releases page for the manual verification
252-
# If accepted and published, release workflow would be triggered
253-
releaseDraft:
254-
name: Release draft
255-
if: github.event_name != 'pull_request'
256-
needs: [ build, test, inspectCode, verify ]
257-
runs-on: ubuntu-24.04
258-
permissions:
259-
contents: write
260-
steps:
261-
262-
# Check out the current repository
263-
- name: Fetch Sources
264-
uses: actions/checkout@v4
265-
266-
# Remove old release drafts by using the curl request for the available releases with a draft flag
267-
- name: Remove Old Release Drafts
268-
env:
269-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
270-
run: |
271-
gh api repos/{owner}/{repo}/releases \
272-
--jq '.[] | select(.draft == true) | .id' \
273-
| xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
274-
275-
# Create a new release draft which is not publicly visible and requires manual acceptance
276-
- name: Create Release Draft
277-
env:
278-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
279-
run: |
280-
gh release create "v${{ needs.build.outputs.version }}" \
281-
--draft \
282-
--title "v${{ needs.build.outputs.version }}" \
283-
--notes "$(cat << 'EOM'
284-
${{ needs.build.outputs.changelog }}
285-
EOM
286-
)"

0 commit comments

Comments
 (0)