Skip to content

Commit

Permalink
create release changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
scong-ttd committed Mar 21, 2023
1 parent a21c9dc commit 5cbe4cc
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/create-release.yaml
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
1 change: 1 addition & 0 deletions releases/previous_release.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
29845562779f2928c0e56952c2a743a173ccd1ea

0 comments on commit 5cbe4cc

Please sign in to comment.