Skip to content

Commit

Permalink
Modify release information
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdicloud committed Aug 16, 2023
1 parent 3fc6cc4 commit fd38a8b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nmc-app-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# SPDX-License-Identifier: AGPL-3.0
#
# Author: Bernd rederlechner <[email protected]
# Author: Bernd Rederlechner <[email protected]
#
# Build non-forked, self-developed app with the same mechanism
# as MagentaCLOUD custoized apps
Expand Down Expand Up @@ -95,7 +95,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ inputs.tag }}
release_name: ${{ inputs.tag }} MagentaCLOUD app '${{ inputs.appname }}'
release_name: ${{ inputs.tag }}
body: |
Update for MagentaCLOUD regular app '${{ inputs.appname }}'
draft: false
prerelease: ${{ inputs.prerelease || false }}

Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/nmc-app-precond.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# SPDX-License-Identifier: AGPL-3.0
#
# Author: Bernd rederlechner <[email protected]
# Author: Bernd Rederlechner <[email protected]
#
# Assemble a customisation for recent trunk or a stable branch
# If trunk, no backports are considered. For stable, only the
Expand Down Expand Up @@ -30,6 +30,9 @@ on:
appversion:
description: The appversion from info.xml
value: ${{ jobs.appcheck.outputs.appversion }}
appshort:
description: The short description from info.xml
value: ${{ jobs.appshort.outputs.appshort }}
tag:
description: a tag name according to our naming conventions
value: ${{ jobs.appcheck.outputs.tag }}
Expand All @@ -42,6 +45,7 @@ jobs:
outputs:
appname: ${{ steps.appname.outputs.result }}
appversion: ${{ steps.appversion.outputs.result }}
appinfo: ${{ steps.appinfo.outputs.result }}
tag: nmc${{ steps.appversion.outputs.result }}-${{ inputs.increment }}
steps:

Expand All @@ -65,6 +69,13 @@ jobs:
filename: ${{ runner.TEMP }}/info.xml
expression: "/info/version/text()"

- name: Get appversion from appinfo
id: appshort
uses: QwerMike/xpath-action@v1
with:
filename: ${{ runner.TEMP }}/info.xml
expression: "/info/summary/text()"

- name: Check ambigouity
id: release_not_exist
uses: actions/github-script@v6
Expand All @@ -73,7 +84,7 @@ jobs:
script: |
// Test whether release is readable
try {
const releaseTag = "nmc${{ steps.appversion.result }}-${{ inputs.increment }}";
const releaseTag = "nmc${{ steps.appversion.outputs.result }}-${{ inputs.increment }}";
const { data: release } = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nmc-custom-app-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# SPDX-License-Identifier: AGPL-3.0
#
# Author: Bernd rederlechner <[email protected]
# Author: Bernd Rederlechner <[email protected]
#
# Assemble a customisation for recent trunk or a stable branch
# If trunk, no backports are considered. For stable, only the
Expand Down Expand Up @@ -99,7 +99,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ inputs.tag }}
release_name: ${{ inputs.tag }} MagentaCLOUD custom app '${{ inputs.appname }}'
release_name: ${{ inputs.tag }}
body: |
Update for MagentaCloud customized fork app '${{ inputs.appname }}'
draft: false
prerelease: ${{ inputs.prerelease || false }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nmc-custom-server-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ inputs.tag }}
release_name: ${{ inputs.tag }} MagentaCLOUD server customisation
release_name: ${{ inputs.tag }}
body: |
Update for MagentaCloud server fork
draft: false
prerelease: ${{ inputs.prerelease || false }}

Expand Down

0 comments on commit fd38a8b

Please sign in to comment.