Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Spolti <fspolti@redhat.com>
  • Loading branch information
spolti committed Aug 27, 2024
1 parent fb57c15 commit 19d231e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/odh-create-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
tag_name:
description: 'Tag name for the new release'
required: true
prev_tag_name:
description: 'Previous Tag name for change log'
required: true

permissions:
contents: write
Expand Down Expand Up @@ -72,7 +75,7 @@ jobs:
git config --global user.email "github-actions@github.com"
git config --global user.name "GitHub Actions"
git add config/overlays/odh/params.env
git commit -m "Update image refs for odh release."
git commit -m "Update image refs for odh release." || true #hack to not fail when there is nothing to commit
- name: Create Tag
id: create_tag
Expand All @@ -90,6 +93,11 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Generate Changelog
run: |
gh pr list --state merged --base ${{ github.event.inputs.prev_tag_name }} --head ${{ github.event.inputs.tag_name }} --json title,author,number | \
jq -r '.[] | "* \(.title) by @\(.author.login) in #\(.number)"' > CHANGELOG.md
- name: Create Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 19d231e

Please sign in to comment.