Skip to content

Commit 5cbe4cc

Browse files
committed
create release changelog
1 parent a21c9dc commit 5cbe4cc

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Create Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
release_version:
6+
description: "The current release version (temporary)"
7+
required: true
8+
previous_release_override:
9+
description: "The commit hash of previous release. Leave empty to use releases/previous_release.hash"
10+
required: false
11+
default: ''
12+
13+
jobs:
14+
build:
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: pull version hashes
19+
id: pull_version_hashes
20+
run: |
21+
echo "::set-output name=head_ref::$(git rev-parse HEAD)"
22+
[[ -z "${{ github.event.inputs.previous_release_override }}" ]] && \
23+
echo "::set-output name=base_ref::$(cat releases/previous_release.hash)" || \
24+
echo "::set-output name=base_ref::${{ github.event.inputs.previous_release_override }}"
25+
26+
- name: pull change notes
27+
id: generate_changelog
28+
uses: nblagoev/[email protected]
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
head-ref: ${{ steps.pull_version_hashes.outputs.head_ref }}
33+
base-ref: ${{ steps.pull_version_hashes.outputs.base_ref }}
34+
repository: IABTechLab/uid2-operator
35+
36+
- name: create release
37+
uses: actions/create-release@v1
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
tag_name: ${{ github.event.inputs.release_version }}
42+
release_name: UID2 Operator ${{ github.event.inputs.release_version }}
43+
body: ${{ steps.generate_changelog.outputs.result }}
44+
draft: true

releases/previous_release.hash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
29845562779f2928c0e56952c2a743a173ccd1ea

0 commit comments

Comments
 (0)