Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ on:
type: string
required: false
default: devcontainers.ci
publishAzdoExtension:
description: Whether to publish the AzDO extension
enableAzdo:
description: Whether to run AzDO steps (test pipeline and publish)
type: boolean
required: false
default: true
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
(cd github-action/ && npm install && npm run build && npm run package)

- name: Publish AzDO Task
if: ${{ inputs.publishAzdoExtension }}
if: ${{ inputs.enableAzdo }}
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -351,7 +351,7 @@ jobs:
name: Run AzDO test
runs-on: ubuntu-latest
needs: build
if: ${{ needs.build.outputs.image_push_option == 'filter' }}
if: ${{ inputs.enableAzdo && needs.build.outputs.image_push_option == 'filter' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches: [main]
workflow_dispatch:
inputs:
publishAzdoExtension:
description: Publish the AzDO extension
enableAzdo:
description: Run AzDO steps
type: boolean
default: true

Expand All @@ -25,6 +25,6 @@ jobs:
uses: ./.github/workflows/ci_common.yml
with:
release: true
publishAzdoExtension: ${{ inputs.publishAzdoExtension == '' && true || inputs.publishAzdoExtension }}
enableAzdo: ${{ inputs.enableAzdo == '' && true || inputs.enableAzdo }}
secrets:
AZDO_TOKEN: ${{ secrets.AZDO_TOKEN }}
Loading