-
Notifications
You must be signed in to change notification settings - Fork 74
44 lines (42 loc) · 1.69 KB
/
_produce-data.yaml
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
41
42
43
44
name: "[internal] Produce data for external analysis"
on:
workflow_call:
workflow_dispatch:
workflow_run:
workflows:
- "All post-commit tests"
types:
- completed
jobs:
produce-data:
runs-on: ubuntu-latest
steps:
- name: Output (safe) pipeline values
run: |
echo "pipeline_id (id / run #): ${{ github.run_id }}/${{ github.run_attempt }}"
echo "submissions_ts: "
echo "start_ts: "
echo "end_ts: "
echo "name: ${{ github.workflow }}, but rk recommended name w/out @: ${{ github.workflow_ref }}"
echo "trigger: ${{ github.event_name }}"
echo "sha: ${{ github.sha }}"
echo "(triggering) author/actor: ${{ github.actor }}"
echo "author/actor: ${{ github.triggering_actor }}"
echo "orchestrator: github (Static)"
echo "docker_image: ${{ job.container.image }}"
echo "build duration is post-process"
- name: Output auxiliary values
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "[Info] Workflow run"
gh api /repos/tenstorrent/tt-metal/actions/runs/${{ github.run_id }}
echo "[Info] Workflow run attempt"
gh api /repos/tenstorrent/tt-metal/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}
- name: Output auxiliary values (workflow_run completed)
if: ${{ github.event_name == 'workflow_run' }}
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "[Info] Triggering Workflow run"
gh api /repos/tenstorrent/tt-metal/actions/runs/${{ github.event.workflow_run.id }}/attempts/${{ github.event.workflow_run.run_attempt }}