Skip to content

Commit 6a9044f

Browse files
committed
Add "Publish the AzDO extension" input
1 parent 71daba9 commit 6a9044f

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci_common.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ on:
4545
type: string
4646
required: false
4747
default: devcontainers.ci
48+
publishAzdoExtension:
49+
description: Whether to publish the AzDO extension
50+
type: boolean
51+
required: false
52+
default: true
4853
secrets:
4954
AZDO_TOKEN:
5055
description: ""
@@ -294,6 +299,7 @@ jobs:
294299
(cd github-action/ && npm install && npm run build && npm run package)
295300
296301
- name: Publish AzDO Task
302+
if: ${{ inputs.publishAzdoExtension }}
297303
uses: ./
298304
env:
299305
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci_main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
push:
77
branches: [main]
88
workflow_dispatch:
9+
inputs:
10+
publishAzdoExtension:
11+
description: Publish the AzDO extension
12+
type: boolean
13+
default: true
914

1015
permissions:
1116
contents: write
@@ -20,5 +25,6 @@ jobs:
2025
uses: ./.github/workflows/ci_common.yml
2126
with:
2227
release: true
28+
publishAzdoExtension: ${{ inputs.publishAzdoExtension == '' && true || inputs.publishAzdoExtension }}
2329
secrets:
2430
AZDO_TOKEN: ${{ secrets.AZDO_TOKEN }}

0 commit comments

Comments
 (0)