-
Notifications
You must be signed in to change notification settings - Fork 298
40 lines (36 loc) · 1.09 KB
/
collect-sample-data.yml
File metadata and controls
40 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CollectSampleData
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'samples/**'
- 'tools/collect-samples-data.ps1'
jobs:
collect-sample-data:
name: Collect sample data
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Generate samples data JSON
shell: pwsh
run: |
./tools/collect-samples-data.ps1 -OutputPath ./samples-data.json
- name: Upload samples data to Internal Automation
shell: bash
run: |
curl --fail-with-body --show-error --silent \
-X POST \
-H "Content-Type: application/json" \
-H "x-functions-key: ${{ secrets.FUNCTIONS_AUTHKEY }}" \
--data-binary "@./tools/samples-data.json" \
"${{ secrets.PROCESSSAMPLESDATARESULTS_URL }}"
- name: Archive generated payload on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v7
with:
name: samples-data-json
path: ./tools/samples-data.json
if-no-files-found: ignore