4545 type : string
4646 required : false
4747 default : devcontainers.ci
48- enableAzdo :
49- description : Whether to run AzDO steps (test pipeline and publish)
50- type : boolean
51- required : false
52- default : true
5348 secrets :
5449 AZDO_TOKEN :
5550 description : " "
@@ -202,7 +197,7 @@ jobs:
202197 name : All succeeded
203198 needs : # TODO - check what jobs need adding here
204199 - build
205- - test-azdo
200+ # - test-azdo
206201 - test-gh-run-args
207202 - test-gh-build-args
208203 - test-gh-dockerfile-context
@@ -298,34 +293,33 @@ jobs:
298293 (cd common && npm install && npm run build)
299294 (cd github-action/ && npm install && npm run build && npm run package)
300295
301- - name : Publish AzDO Task
302- if : ${{ inputs.enableAzdo }}
303- uses : ./
304- env :
305- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
306- AZDO_PROJECT : ${{ inputs.AZDO_PROJECT }}
307- AZDO_BUILD : ${{ inputs.AZDO_BUILD }}
308- AZDO_ORG : ${{ inputs.AZDO_ORG }}
309- AZDO_TOKEN : ${{ secrets.AZDO_TOKEN }}
310- AZURE_DEVOPS_EXT_PAT : ${{ secrets.AZDO_TOKEN }}
311- BUILD_NUMBER : ${{ github.run_id }}
312- IS_PR : ${{ github.head_ref }}
313- BRANCH : ${{ github.ref }}
314- with :
315- imageName : ghcr.io/devcontainers/ci-devcontainer
316- runCmd : |
317- echo "Starting"
318- ./scripts/publish-azdo-task.sh
319- env : |
320- BUILD_NUMBER
321- IS_CI=1
322- IS_PR
323- BRANCH
324- AZDO_TOKEN
325- AZURE_DEVOPS_EXT_PAT
326- AZDO_ORG
327- AZDO_PROJECT
328- AZDO_BUILD
296+ # - name: Publish AzDO Task
297+ # uses: ./
298+ # env:
299+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
300+ # AZDO_PROJECT: ${{ inputs.AZDO_PROJECT }}
301+ # AZDO_BUILD: ${{ inputs.AZDO_BUILD }}
302+ # AZDO_ORG: ${{ inputs.AZDO_ORG }}
303+ # AZDO_TOKEN: ${{ secrets.AZDO_TOKEN }}
304+ # AZURE_DEVOPS_EXT_PAT: ${{ secrets.AZDO_TOKEN }}
305+ # BUILD_NUMBER: ${{ github.run_id }}
306+ # IS_PR: ${{ github.head_ref }}
307+ # BRANCH: ${{ github.ref }}
308+ # with:
309+ # imageName: ghcr.io/devcontainers/ci-devcontainer
310+ # runCmd: |
311+ # echo "Starting"
312+ # ./scripts/publish-azdo-task.sh
313+ # env: |
314+ # BUILD_NUMBER
315+ # IS_CI=1
316+ # IS_PR
317+ # BRANCH
318+ # AZDO_TOKEN
319+ # AZURE_DEVOPS_EXT_PAT
320+ # AZDO_ORG
321+ # AZDO_PROJECT
322+ # AZDO_BUILD
329323
330324 - name : Create GitHub Action Release
331325 env :
@@ -347,85 +341,85 @@ jobs:
347341 # - review the Azure DevOps pipeline and consider adding there for verification
348342 #
349343
350- test-azdo :
351- name : Run AzDO test
352- runs-on : ubuntu-latest
353- needs : build
354- if : ${{ inputs.enableAzdo && needs.build.outputs.image_push_option == 'filter' }}
355- steps :
356- - name : Checkout
357- uses : actions/checkout@v4
358- with :
359- persist-credentials : false
360- # if the following value is missing (i.e. not triggered via comment workflow)
361- # then the default checkout will apply
362- ref : ${{ inputs.prRef }}
363-
364- - name : Show version
365- env :
366- VERSION : ${{ needs.build.outputs.version }}
367- VERSION_SHORT : ${{ needs.build.outputs.version_short }}
368- run : |
369- echo "VERSION: $VERSION"
370- echo "VERSION_SHORT: $VERSION_SHORT"
371-
372- - name : Download workflow artifacts
373- uses : actions/download-artifact@v4
374- with :
375- path : output
376-
377- - name : Download release VSIX
378- uses : actions/download-artifact@v4
379- with :
380- name : azdo-task-dev
381- path : output
382-
383- - name : Login to GitHub Container Registry
384- uses : docker/login-action@v3
385- if : github.ref == 'refs/heads/main' # only need this for push (on `main`)
386- with :
387- registry : ghcr.io
388- username : ${{ github.repository_owner }}
389- password : ${{ secrets.GITHUB_TOKEN }}
390-
391- # Published action contains compiled JS, but we need to compile it here
392- - uses : actions/setup-node@v6
393- with :
394- node-version : 24
395- - name : Compile GH action
396- run : |
397- (cd common && npm install && npm run build)
398- (cd github-action/ && npm install && npm run build && npm run package)
399-
400- - name : Run AzDO test pipeline
401- uses : ./
402- env :
403- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
404- AZDO_PROJECT : ${{ inputs.AZDO_PROJECT }}
405- AZDO_BUILD : ${{ inputs.AZDO_BUILD }}
406- AZDO_ORG : ${{ inputs.AZDO_ORG }}
407- AZDO_TOKEN : ${{ secrets.AZDO_TOKEN }}
408- AZURE_DEVOPS_EXT_PAT : ${{ secrets.AZDO_TOKEN }}
409- BUILD_NUMBER : ${{ github.run_id }}
410- IS_PR : ${{ github.head_ref }}
411- BRANCH : ${{ github.ref }}
412- IMAGE_TAG : ${{ needs.build.outputs.image_tag }}
413- with :
414- imageName : ghcr.io/devcontainers/ci-devcontainer
415- runCmd : |
416- echo "Starting"
417- ./scripts/test-azdo.sh
418- env : |
419- BUILD_NUMBER
420- IMAGE_TAG
421- IS_CI=1
422- IS_PR
423- BRANCH
424- AZDO_TOKEN
425- AZURE_DEVOPS_EXT_PAT
426- AZDO_ORG
427- AZDO_PROJECT
428- AZDO_BUILD
344+ # test-azdo:
345+ # name: Run AzDO test
346+ # runs-on: ubuntu-latest
347+ # needs: build
348+ # if: ${{ needs.build.outputs.image_push_option == 'filter' }}
349+ # steps:
350+ # - name: Checkout
351+ # uses: actions/checkout@v4
352+ # with:
353+ # persist-credentials: false
354+ # # if the following value is missing (i.e. not triggered via comment workflow)
355+ # # then the default checkout will apply
356+ # ref: ${{ inputs.prRef }}
357+
358+ # - name: Show version
359+ # env:
360+ # VERSION: ${{ needs.build.outputs.version }}
361+ # VERSION_SHORT: ${{ needs.build.outputs.version_short }}
362+ # run: |
363+ # echo "VERSION: $VERSION"
364+ # echo "VERSION_SHORT: $VERSION_SHORT"
365+
366+ # - name: Download workflow artifacts
367+ # uses: actions/download-artifact@v4
368+ # with:
369+ # path: output
370+
371+ # - name: Download release VSIX
372+ # uses: actions/download-artifact@v4
373+ # with:
374+ # name: azdo-task-dev
375+ # path: output
376+
377+ # - name: Login to GitHub Container Registry
378+ # uses: docker/login-action@v3
379+ # if: github.ref == 'refs/heads/main' # only need this for push (on `main`)
380+ # with:
381+ # registry: ghcr.io
382+ # username: ${{ github.repository_owner }}
383+ # password: ${{ secrets.GITHUB_TOKEN }}
384+
385+ # # Published action contains compiled JS, but we need to compile it here
386+ # - uses: actions/setup-node@v6
387+ # with:
388+ # node-version: 24
389+ # - name: Compile GH action
390+ # run: |
391+ # (cd common && npm install && npm run build)
392+ # (cd github-action/ && npm install && npm run build && npm run package)
393+
394+ # - name: Run AzDO test pipeline
395+ # uses: ./
396+ # env:
397+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
398+ # AZDO_PROJECT: ${{ inputs.AZDO_PROJECT }}
399+ # AZDO_BUILD: ${{ inputs.AZDO_BUILD }}
400+ # AZDO_ORG: ${{ inputs.AZDO_ORG }}
401+ # AZDO_TOKEN: ${{ secrets.AZDO_TOKEN }}
402+ # AZURE_DEVOPS_EXT_PAT: ${{ secrets.AZDO_TOKEN }}
403+ # BUILD_NUMBER: ${{ github.run_id }}
404+ # IS_PR: ${{ github.head_ref }}
405+ # BRANCH: ${{ github.ref }}
406+ # IMAGE_TAG: ${{ needs.build.outputs.image_tag }}
407+ # with:
408+ # imageName: ghcr.io/devcontainers/ci-devcontainer
409+ # runCmd: |
410+ # echo "Starting"
411+ # ./scripts/test-azdo.sh
412+ # env: |
413+ # BUILD_NUMBER
414+ # IMAGE_TAG
415+ # IS_CI=1
416+ # IS_PR
417+ # BRANCH
418+ # AZDO_TOKEN
419+ # AZURE_DEVOPS_EXT_PAT
420+ # AZDO_ORG
421+ # AZDO_PROJECT
422+ # AZDO_BUILD
429423
430424 test-simple :
431425 name : Run simple test
0 commit comments