HTML · 5629 bytes Raw Blame History
1 {{ define "page" -}}
2 {{ template "repo-header" . }}
3 <section class="shithub-actions-run-page">
4 <header class="shithub-actions-run-head">
5 <div>
6 <a href="{{ .Run.ActionsHref }}" class="shithub-actions-back">{{ octicon "workflow" }} {{ .Run.Title }}</a>
7 <h1>
8 <span class="shithub-actions-state shithub-actions-state-{{ .Run.StateClass }}">{{ octicon .Run.StateIcon }}</span>
9 {{ .Run.Title }} <span>#{{ .Run.RunIndex }}</span>
10 </h1>
11 <p>
12 Triggered via {{ .Run.EventLabel }}
13 {{ if .Run.ActorUsername }}by <a href="/{{ .Run.ActorUsername }}">{{ .Run.ActorUsername }}</a>{{ end }}
14 for <a href="/{{ .Owner }}/{{ .Repo.Name }}/commit/{{ .Run.HeadSha }}"><code>{{ .Run.HeadShaShort }}</code></a>
15 {{ if .Run.HeadRef }}on <a class="shithub-branch-name" href="/{{ .Owner }}/{{ .Repo.Name }}/tree/{{ .Run.HeadRef }}">{{ .Run.HeadRef }}</a>{{ end }}
16 </p>
17 </div>
18 <div class="shithub-actions-run-head-actions">
19 {{ template "action-run-status" . }}
20 <a class="shithub-button" href="{{ .Run.CodeHref }}">{{ octicon "code" }} Code</a>
21 </div>
22 </header>
23
24 <div class="shithub-actions-run-layout">
25 <aside class="shithub-actions-sidebar shithub-actions-run-sidebar" aria-label="Run navigation">
26 <a href="#summary" class="shithub-actions-nav-item is-active" aria-current="page">{{ octicon "home" }} <span>Summary</span></a>
27 <div class="shithub-actions-sidebar-section">
28 <h2>Jobs</h2>
29 {{ range .Run.Jobs }}
30 <a href="#{{ .Anchor }}" class="shithub-actions-nav-item">
31 <span class="shithub-actions-state shithub-actions-state-{{ .StateClass }}">{{ octicon .StateIcon }}</span>
32 <span>{{ .Name }}</span>
33 </a>
34 {{ else }}
35 <p>No jobs were created for this run.</p>
36 {{ end }}
37 </div>
38 <div class="shithub-actions-sidebar-section">
39 <h2>Run details</h2>
40 <span class="shithub-actions-nav-item">{{ octicon "file" }} <span>{{ .Run.WorkflowFile }}</span></span>
41 </div>
42 </aside>
43
44 <div class="shithub-actions-run-main">
45 <section id="summary" class="shithub-actions-summary-strip">
46 <div>
47 <span>Triggered via</span>
48 <strong>{{ .Run.EventLabel }}</strong>
49 </div>
50 <div>
51 <span>Status</span>
52 <strong class="shithub-actions-state-{{ .Run.StateClass }}">{{ .Run.StateText }}</strong>
53 </div>
54 <div>
55 <span>Total duration</span>
56 <strong>{{ .Run.Duration }}</strong>
57 </div>
58 <div>
59 <span>Artifacts</span>
60 <strong>{{ .Run.ArtifactCount }}</strong>
61 </div>
62 </section>
63
64 <section class="shithub-actions-workflow-card">
65 <header>
66 <div>
67 <h2>{{ .Run.WorkflowFile }}</h2>
68 <p>{{ .Run.CompletedCount }} of {{ .Run.JobCount }} jobs finished{{ if .Run.FailureCount }} · {{ .Run.FailureCount }} failed{{ end }}</p>
69 </div>
70 </header>
71 {{ if .Run.Jobs }}
72 <div class="shithub-actions-workflow-graph" aria-label="Workflow job graph">
73 <div class="shithub-actions-workflow-stages">
74 {{ range .Run.Stages }}
75 <div class="shithub-actions-workflow-stage">
76 {{ range .Jobs }}
77 <a href="#{{ .Anchor }}" class="shithub-actions-job-card">
78 <span class="shithub-actions-state shithub-actions-state-{{ .StateClass }}">{{ octicon .StateIcon }}</span>
79 <strong>{{ .Name }}</strong>
80 <span>{{ .Duration }}</span>
81 {{ if .NeedsText }}<small>needs {{ .NeedsText }}</small>{{ end }}
82 </a>
83 {{ end }}
84 </div>
85 {{ end }}
86 </div>
87 </div>
88 {{ else }}
89 <div class="shithub-actions-empty shithub-actions-empty-compact">
90 <h2>No jobs</h2>
91 <p>This workflow run has not materialized any jobs yet.</p>
92 </div>
93 {{ end }}
94 </section>
95
96 <section class="shithub-actions-jobs" aria-label="Workflow jobs">
97 {{ range .Run.Jobs }}
98 <details id="{{ .Anchor }}" class="shithub-actions-job-detail" open>
99 <summary>
100 <span class="shithub-actions-state shithub-actions-state-{{ .StateClass }}">{{ octicon .StateIcon }}</span>
101 <span>
102 <strong>{{ .Name }}</strong>
103 <small>{{ .StateText }} · {{ .Duration }}{{ if .RunsOn }} · runs-on {{ .RunsOn }}{{ end }}{{ if .NeedsText }} · needs {{ .NeedsText }}{{ end }}</small>
104 </span>
105 </summary>
106 <ol class="shithub-actions-step-list">
107 {{ range .Steps }}
108 <li>
109 <a href="{{ .LogHref }}" class="shithub-actions-step-row">
110 <span class="shithub-actions-state shithub-actions-state-{{ .StateClass }}">{{ octicon .StateIcon }}</span>
111 <span>
112 <strong>{{ .Name }}</strong>
113 {{ if .Detail }}<small>{{ .Kind }} · {{ .Detail }}</small>{{ else }}<small>{{ .Kind }}</small>{{ end }}
114 </span>
115 <span>{{ .Duration }}</span>
116 </a>
117 </li>
118 {{ else }}
119 <li class="shithub-actions-step-empty">No steps were created for this job.</li>
120 {{ end }}
121 </ol>
122 </details>
123 {{ end }}
124 </section>
125 </div>
126 </div>
127 </section>
128 {{- end }}