-
Notifications
You must be signed in to change notification settings - Fork 51
63 lines (63 loc) · 1.83 KB
/
test-release-notes.yaml
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
56
57
58
59
60
61
62
63
---
name: Test release notes
on:
workflow_dispatch:
inputs:
versionLevel:
description: 'The semVer level of the version'
required: true
default: 'minor'
type: choice
options:
- major
- minor
- patch
baseBranch:
description: 'Test CNAO branch to release from'
required: true
type: choice
default: 'main'
options:
- main
- release-0.76
- release-0.65
- release-0.58
- release-0.53
- release-0.79
- release-0.89
- release-0.91
- release-0.93
- release-0.95
- release-0.97
jobs:
prepare-release:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.baseBranch }}
fetch-depth: 0
- name: Pull latest of latest branch
run: git pull --ff-only --rebase origin ${{ github.event.inputs.baseBranch }}
- name: Store last version and current SHA
run: |
echo "LAST_VERSION=$(./hack/version.sh)" >> $GITHUB_ENV
echo "START_SHA=$(git rev-list -n 1 v$(./hack/version.sh))" >> $GITHUB_ENV
echo "END_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Dump release-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: /tmp
run: |
go install k8s.io/release/cmd/release-notes@latest
release-notes \
-list-v2 \
--required-author "" \
--org kubevirt \
--dependencies=false \
--repo cluster-network-addons-operator \
--debug true