Skip to content

Commit 97358da

Browse files
committed
Allow a version suffix override in release workflow.
1 parent 3bf4252 commit 97358da

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ jobs:
4646
- name: Install dependencies for tests
4747
run: npm install @modelcontextprotocol/server-memory
4848

49-
- name: Build and Package
49+
- name: Build
50+
run: dotnet build --configuration ${{ matrix.configuration }}
51+
52+
- name: Pack
5053
run: dotnet pack --configuration ${{ matrix.configuration }}
5154

5255
- name: Test

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
- cron: '0 7 * * *'
2323

2424
workflow_dispatch:
25+
inputs:
26+
version_suffix_override:
27+
description: Version suffix override
28+
type: string
2529

2630
release:
2731
types: [published]
@@ -35,7 +39,7 @@ jobs:
3539
needs: run-ci
3640

3741
env:
38-
version_suffix_args: ${{ github.event_name != 'release' && format('--version-suffix "ci.{0}"', github.run_number) || '' }}
42+
version_suffix_args: ${{ github.event_name != 'release' && format('--version-suffix "{0}"', inputs.version_suffix_override || format('ci.{0}', github.run_number)) || '' }}
3943

4044
steps:
4145
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)