-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Create Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_version: | ||
description: "The current release version (temporary)" | ||
required: true | ||
previous_release_override: | ||
description: "The commit hash of previous release. Leave empty to use releases/previous_release.hash" | ||
required: false | ||
default: '' | ||
|
||
jobs: | ||
build: | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: pull version hashes | ||
id: pull_version_hashes | ||
run: | | ||
echo "::set-output name=head_ref::$(git rev-parse HEAD)" | ||
[[ -z "${{ github.event.inputs.previous_release_override }}" ]] && \ | ||
echo "::set-output name=base_ref::$(cat releases/previous_release.hash)" || \ | ||
echo "::set-output name=base_ref::${{ github.event.inputs.previous_release_override }}" | ||
- name: pull change notes | ||
id: generate_changelog | ||
uses: nblagoev/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
head-ref: ${{ steps.pull_version_hashes.outputs.head_ref }} | ||
base-ref: ${{ steps.pull_version_hashes.outputs.base_ref }} | ||
repository: IABTechLab/uid2-operator | ||
|
||
- name: create release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.inputs.release_version }} | ||
release_name: UID2 Operator ${{ github.event.inputs.release_version }} | ||
body: ${{ steps.generate_changelog.outputs.result }} | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
29845562779f2928c0e56952c2a743a173ccd1ea |