Change-Id: If0d5d851b151ee3a8094644b36a8c2ceb450a5c3 Signed-off-by: nickboldt <nboldt@redhat.com>pull/191/head
parent
adc6c51a5b
commit
97e7013050
|
|
@ -1,84 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
|
||||
name: Release changelog
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '7.*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'The version that is going to be released. Should be in format 7.y.z'
|
||||
required: true
|
||||
default: ''
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up GH checkout and tokens
|
||||
run: |
|
||||
git config --global user.name "Mykhailo Kuznietsov"
|
||||
git config --global user.email "mkuznets@redhat.com"
|
||||
git config --global push.default matching
|
||||
export GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }}
|
||||
export CHE_BOT_GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }}
|
||||
- name: Create changelog
|
||||
id: generate-release-changelog
|
||||
# wrapper for https://github.com/github-changelog-generator/github-changelog-generator
|
||||
uses: heinrichreimer/github-changelog-generator-action@v2.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
|
||||
CHANGELOG_GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
|
||||
with:
|
||||
repo: eclipse/che
|
||||
# output: CHANGELOG-next.md
|
||||
dateFormat: "%Y-%m-%d"
|
||||
onlyLastTag: "true"
|
||||
stripHeaders: "true"
|
||||
stripGeneratorNotice: "true"
|
||||
maxIssues: 200
|
||||
verbose: true
|
||||
releaseBranch: main # TODO: change to main
|
||||
dueTag: ${{ github.event.inputs.version }} # all issues up to the current release tag
|
||||
filterByMilestone: false # this requires that we get good at setting milestone when something is actually DONE rather than when we think it'll be done
|
||||
pullRequests: false # only include issues, not PRs, since PRs span multiple repos and are too noisy to include
|
||||
issuesWoLabels: false # no labels? no logged change
|
||||
issues: true
|
||||
# issueLineLabels: "ALL" # doesn't work - /usr/local/bundle/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/section.rb:52:in `get_string_for_issue': undefined method `line_labels_for' for #<GitHubChangelogGenerator::Section:0x00005608809a9988> (NoMethodError)
|
||||
compareLink: false
|
||||
unreleased: true # show unreleased, but closed items
|
||||
addSections: '{"sprint/current-sprint":{"prefix":"**Issues in Current Sprint:**","labels":["sprint/current-sprint"]}, "new¬eworthy":{"prefix":"**New and Noteworthy Issues:**","labels":["new¬eworthy"]}}'
|
||||
excludeTags: '' # comma,delimited,list,of,tags
|
||||
# includeLabels: ''
|
||||
excludeLabels: "kind/release"
|
||||
enhancementLabel: "Enhancements, Epics, and UX"
|
||||
enhancementLabels: "kind/enhancement,kind/epic,kind/ux"
|
||||
bugsLabel: "Bugs fixed"
|
||||
bugLabels: "kind/bug"
|
||||
token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
|
||||
- name: Create GH Release
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@v1.8.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
|
||||
with:
|
||||
allowUpdates: true
|
||||
body: ${{ steps.generate-release-changelog.outputs.changelog }}
|
||||
draft: false
|
||||
name: Eclipse Che ${{ github.event.inputs.version }}
|
||||
omitBodyDuringUpdate: false
|
||||
omitNameDuringUpdate: false
|
||||
prerelease: false
|
||||
tag: ${{ github.event.inputs.version }}
|
||||
token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
|
||||
Loading…
Reference in New Issue