|
| 1 | +# API |
| 2 | +# Outputs: |
| 3 | +# - version |
| 4 | +# - version-type |
| 5 | +# Artifacts: |
| 6 | +# - tarball, npm pack of all 6 packages: core, api, component, directlinespeech-sdk, bundle, fluent-theme |
| 7 | +# - bundle-iife, /bundle/dist/webchat*.js |
| 8 | +# - bundle-esm, /bundle/static/ |
| 9 | +# - fluent-theme-iife, /fluent-theme/dist/ |
| 10 | +# - fluent-theme-esm, /fluent-theme/static/ |
| 11 | +# - sbom, *.spdx.json (optional) |
| 12 | + |
1 | 13 | name: 'Build via AzDO' |
2 | 14 | description: Run a build pipeline via Azure DevOps and download the build artifact |
3 | 15 |
|
@@ -54,10 +66,12 @@ runs: |
54 | 66 | if ! command -v az > /dev/null; then |
55 | 67 | curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
56 | 68 | fi |
| 69 | + shell: bash |
57 | 70 |
|
| 71 | + - name: Install yq |
| 72 | + run: | |
58 | 73 | if ! command -v jq > /dev/null; then |
59 | 74 | sudo apt-get update |
60 | | - # sudo apt-get install -y icu jq |
61 | 75 | sudo apt-get install -y jq |
62 | 76 | fi |
63 | 77 | shell: bash |
@@ -103,12 +117,12 @@ runs: |
103 | 117 | echo "url=$RUN_URL" | tee --append $GITHUB_OUTPUT |
104 | 118 | shell: bash |
105 | 119 |
|
106 | | - # Temporarily not running pipeline but getting from existing result |
| 120 | + # For testing: temporarily getting from existing pipeline result, instead of running |
107 | 121 | # - id: run-pipeline |
108 | 122 | # name: Run pipeline |
109 | 123 | # run: | |
110 | | - # echo run-id=424951 | tee --append $GITHUB_OUTPUT |
111 | | - # echo url=https://fuselabs.visualstudio.com/531382a8-71ae-46c8-99eb-9512ccb91a43/_apis/build/Builds/424951 | tee --append $GITHUB_OUTPUT |
| 124 | + # echo run-id=xxx | tee --append $GITHUB_OUTPUT |
| 125 | + # echo url=https://xxx.visualstudio.com/12345678-1234-5678-abcd-12345678abcd/_apis/build/Builds/xxx | tee --append $GITHUB_OUTPUT |
112 | 126 | # shell: bash |
113 | 127 |
|
114 | 128 | - name: Wait for pipeline completion |
@@ -199,12 +213,6 @@ runs: |
199 | 213 | echo "Artifact downloaded successfully" |
200 | 214 | shell: bash |
201 | 215 |
|
202 | | - # - name: Upload artifact |
203 | | - # uses: actions/upload-artifact@v6 |
204 | | - # with: |
205 | | - # name: ${{ inputs.artifact-name }} |
206 | | - # path: ./artifact-download/ |
207 | | - |
208 | 216 | - id: get-version |
209 | 217 | name: Get version |
210 | 218 | run: | |
|
0 commit comments