Skip to content

Commit

Permalink
Add title and deliverable message to versioning job (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity authored May 7, 2024
1 parent 4870d56 commit eee1d2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-das.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ jobs:
main-branch: master
version-tag-regex-pattern: /^\d+\.\d+\.\d+$/
version-require-confirmation: "true"
title: New version of DAS
deliverable: Tagged branch (${{ github.ref_name }}) in the repository
secrets: inherit
21 changes: 10 additions & 11 deletions .github/workflows/run-semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ on:
description: "Version variable name"
required: false
type: string
library:
description: "Library's name"
required: false
title:
description: "Title to appear in the message"
required: true
type: string
deliverable:
description: "Sort description of what is being delivered in this version"
required: true
type: string
changelog:
description: "Changelog"
Expand Down Expand Up @@ -102,18 +106,13 @@ jobs:

- name: Create mattermost message
run: |
title="New version of ${{ inputs.library }}"
deliverable="${{ inputs.deliverable }}"
version="${{ needs.tag.outputs.version }}"
repository="${{ needs.tag.outputs.repository }}"
library="${{ inputs.library }}"
releaseNote=${{ needs.tag.outputs.release-note }}
message=""
if [ -n "$library" ]; then
message="Library: $library\n\n"
fi
message="${message}New version available: $version\nRepository: https://github.com/$repository/releases/tag/$version"
message="${title}\n\nDeliverable:${deliverable}New version available: $version\nRepository: https://github.com/$repository/releases/tag/$version"
if [ -n "$releaseNote" ]; then
message="$message\nChanges:\n$releaseNote"
Expand Down

0 comments on commit eee1d2b

Please sign in to comment.