-
Notifications
You must be signed in to change notification settings - Fork 84
55 lines (53 loc) · 1.97 KB
/
prepare-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Prepare Release
on:
workflow_dispatch:
inputs:
branch:
description: 'the branch to prepare the release against'
required: true
default: 'master'
tag:
description: 'the tag to be released'
rdequired: true
quay_release:
description: 'version of quay (eg. v3.6.0)'
default: 'v3.6.0-alpha.8'
clair_release:
description: 'version of clair (eg. 4.0.5)'
default: '4.0.5'
jira:
description: 'PROJQUAY jira release issue'
required: true
jobs:
prepare:
name: Prepare Release
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Changelog
run: |
curl -o /tmp/git-chglog.tar.gz -fsSL\
https://github.com/git-chglog/git-chglog/releases/download/v0.14.0/git-chglog_0.14.0_linux_amd64.tar.gz
tar xvf /tmp/git-chglog.tar.gz --directory /tmp
chmod u+x /tmp/git-chglog
echo "creating change log for tag: ${{ github.event.inputs.tag }}"
/tmp/git-chglog --next-tag "${{ github.event.inputs.tag }}" --tag-filter-pattern "v3.*" -o CHANGELOG.md v3.6.0-alpha.2..
- name: Version bundle
env:
RELEASE: ${{ github.event.inputs.tag }}
run: |
make prepare-release RELEASE="${RELEASE#v}" QUAY_RELEASE="${{ github.event.inputs.quay_release }}" CLAIR_RELEASE="${{ github.event.inputs.clair_release }}"
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
title: "${{ github.event.inputs.tag }} Changelog Bump"
body: "This is an automated changelog commit."
commit-message: "chore: ${{ github.event.inputs.tag }} changelog bump (${{ github.event.inputs.jira }})"
branch: "ready-${{ github.event.inputs.tag }}"
signoff: true
delete-branch: true