Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 18b7f27

Browse files
committed
Allow manually running release workflow
1 parent becedac commit 18b7f27

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/build-cli.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: "Build CLI"
2-
on: [push]
2+
on:
3+
push:
4+
paths:
5+
- 'src/**'
6+
- 'msgraph-cli-core'
37
jobs:
48
build:
59
runs-on: ubuntu-latest

.github/workflows/release-cli.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: "Release CLI"
22
on:
33
release:
44
types: [published]
5+
workflow_dispatch:
6+
inputs:
7+
tag:
8+
description: 'The tag to build'
9+
required: true
10+
type: string
511
jobs:
612
package:
713
runs-on: ubuntu-latest
@@ -11,7 +17,7 @@ jobs:
1117
env:
1218
MS_NUGET_URL: https://nuget.pkg.github.com/microsoft/index.json
1319
MSGRAPH_NUGET_URL: https://nuget.pkg.github.com/microsoftgraph/index.json
14-
PACKAGE_VERSION: ${{github.ref_name || 'v0.1.0'}}
20+
PACKAGE_VERSION: ${{github.ref_name || github.event.inputs.tag || 'v0.1.0'}}
1521
PACKAGE_ZIP_TEMPLATE: "msgraph-cli-{0}-{1}.zip"
1622
OUTPUT_DIR: /tmp/publish
1723
steps:
@@ -23,6 +29,7 @@ jobs:
2329
uses: actions/checkout@v3
2430
with:
2531
submodules: true
32+
ref: ${{github.event.inputs.tag || ''}}
2633
- name: Setup .NET Core SDK 6
2734
uses: actions/setup-dotnet@v2
2835
with:

0 commit comments

Comments
 (0)