|
56 | 56 | run-e2e: ${{ steps.run-e2e.outputs.result }} |
57 | 57 | run-ui-tests: ${{ steps.run-ui-tests.outputs.result }} |
58 | 58 | deployment-folder-exists: ${{ steps.check_deployment_folder.outputs.exists }} |
| 59 | + requiredModuleListUrl: ${{ steps.extract_pr_url.outputs.url }} |
59 | 60 |
|
60 | 61 | steps: |
61 | 62 |
|
@@ -207,6 +208,36 @@ jobs: |
207 | 208 | echo "result=true" >> $GITHUB_OUTPUT |
208 | 209 | fi |
209 | 210 |
|
| 211 | + - name: Extract URL from PR message |
| 212 | + if: ${{ github.event_name == 'pull_request' }} |
| 213 | + id: extract_pr_url |
| 214 | + shell: pwsh |
| 215 | + env: |
| 216 | + PR_BODY: ${{ github.event.pull_request.body }} |
| 217 | + run: | |
| 218 | + $text = $env:PR_BODY |
| 219 | + $marker = 'Required modules list URL' |
| 220 | + |
| 221 | + $url = '' |
| 222 | + if ($null -ne $text -and $text.Contains($marker)) { |
| 223 | + $startIndex = $text.IndexOf($marker) |
| 224 | + if ($startIndex -ge 0) { |
| 225 | + $slice = $text.Substring($startIndex) |
| 226 | + $match = [regex]::Match($slice, 'https?://[^ )\r\n]+') |
| 227 | + if ($match.Success) { |
| 228 | + $url = $match.Value |
| 229 | + } |
| 230 | + } |
| 231 | + } |
| 232 | + |
| 233 | + if ([string]::IsNullOrWhiteSpace($url) -eq $false) { |
| 234 | + Write-Host "url found: $url" |
| 235 | + Add-Content -Path $env:GITHUB_OUTPUT -Value "url=$url" |
| 236 | + } else { |
| 237 | + Write-Host "url NOT found" |
| 238 | + Add-Content -Path $env:GITHUB_OUTPUT -Value "url=" |
| 239 | + } |
| 240 | +
|
210 | 241 | - name: Look for xapi module in dependencies |
211 | 242 | id: run-ui-tests |
212 | 243 | shell: pwsh |
@@ -304,6 +335,7 @@ jobs: |
304 | 335 | installCustomModule: 'true' |
305 | 336 | customModuleId: ${{ needs.ci.outputs.moduleId }} |
306 | 337 | customModuleUrl: ${{ needs.ci.outputs.artifactUrl }} |
| 338 | + customModuleListUrl: ${{ needs.ci.outputs.requiredModuleListUrl }} |
307 | 339 | platformDockerTag: 'dev-linux-latest' |
308 | 340 | storefrontDockerTag: 'dev-linux-latest' |
309 | 341 | secrets: |
|
0 commit comments