-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
176 lines (167 loc) · 7.46 KB
/
Copy pathindex.html
File metadata and controls
176 lines (167 loc) · 7.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!--
Created by yousef on 12/23/2024 at 2:44 PM.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Workflow Dispatcher lets you trigger GitHub Actions workflows from the browser with custom inputs and history logging.">
<meta name="keywords" content="GitHub Actions, workflow dispatch, GitHub workflow dispatcher, trigger workflow, workflow automation">
<meta property="og:title" content="Workflow Dispatcher">
<meta property="og:description" content="Trigger GitHub Actions workflows directly from your browser and manage dispatch history.">
<meta property="og:url" content="https://workflow-dispatcher.saedyousef.com/">
<meta property="og:type" content="website">
<meta property="og:image" content="https://github.githubassets.com/favicons/favicon.png">
<meta name="twitter:card" content="summary">
<title>Workflow Dispatcher</title>
<link rel="icon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png">
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<div class="theme-toggle-wrapper">
<a class="github-star-badge" href="https://github.com/saedyousef/workflow-dispatcher" target="_blank" rel="noopener noreferrer" aria-label="Star saedyousef/workflow-dispatcher on GitHub">
<img src="https://img.shields.io/github/stars/saedyousef/workflow-dispatcher?style=social" alt="GitHub stars">
</a>
<label class="ui-switch">
<input type="checkbox" id="theme-switch">
<div class="slider">
<div class="circle"></div>
</div>
</label>
</div>
<div class="container">
<div class="form-container">
<h2>Workflow Dispatcher</h2>
<form id="dispatch-form">
<div class="form-row">
<div class="input-group">
<label for="owner">Owner</label><input type="text" id="owner" placeholder="Owner" required>
</div>
<div class="input-group">
<label for="repo">Repository</label><input type="text" id="repo" placeholder="Repository" required>
</div>
</div>
<div class="form-row">
<div class="input-group">
<label for="workflow">Workflow File</label>
<input type="text" id="workflow" placeholder="Workflow file e.g: deploy.yml" required>
</div>
<div class="input-group">
<label for="ref">Branch (ref)</label>
<input type="text" id="ref" placeholder="Branch (Ref) e.g: master" required>
</div>
</div>
<div class="form-row">
<div class="input-group">
<label for="pat">GitHub Personal Access Token (PAT)</label>
<input type="password" id="pat" placeholder="Personal Access Token (PAT)" required>
</div>
</div>
<div class="form-row">
<div class="theme-toggle in">
<input type="checkbox" id="save-pat">
<label class="toggleSwitch" for="save-pat"></label>
<label for="save-pat" class="toggle-label">Save PAT <small>(For future use)</small></label>
</div>
</div>
<div class="form-row">
<div class="form-row theme-toggle">
<input type="checkbox" id="log-history">
<label class="toggleSwitch" for="log-history"></label>
<label for="log-history" class="toggle-label">Log workflow dispatch <small>(in local storage)</small></label>
</div>
</div>
<div class="form-row action-buttons">
<button class="btn-action" id="add-payload-field" type="button">Add Payload</button>
</div>
<div id="payload-container">
</div>
<button class="button">
<svg
viewBox="0 0 16 16"
class="bi bi-lightning-charge-fill"
fill="currentColor"
height="16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.251.068a.5.5 0 0 1 .227.58L9.677 6.5H13a.5.5 0 0 1 .364.843l-8 8.5a.5.5 0 0 1-.842-.49L6.323 9.5H3a.5.5 0 0 1-.364-.843l8-8.5a.5.5 0 0 1 .615-.09z"
></path></svg
>Dispatch Workflow
</button>
</form>
</div>
<div id="dispatch-history-container">
<div class="history-header">
<h2>History</h2>
<button id="clear-history" type="button">Clear</button>
</div>
<div id="dispatch-history-table-wrapper">
<table id="dispatch-history-table">
<thead>
<tr>
<th>Owner</th>
<th>Repo</th>
<th>Workflow</th>
<th>Status</th>
<th>Timestamp</th>
<th>Details</th>
</tr>
</thead>
<tbody>
<!-- Rows will be dynamically added here -->
</tbody>
</table>
</div>
</div>
</div>
<div class="modal micromodal-slide" id="dispatch-details-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="dispatch-details-title">
<header class="modal__header">
<h2 class="modal__title" id="dispatch-details-title">Dispatch Details</h2>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>×</button>
</header>
<main class="modal__content" id="dispatch-details-content"></main>
<footer class="modal__footer">
<button class="button" data-micromodal-close aria-label="Close this dialog window">Close</button>
</footer>
</div>
</div>
</div>
<div class="modal micromodal-slide" id="confirm-clear-history" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="confirm-clear-history-title">
<header class="modal__header">
<h2 class="modal__title" id="confirm-clear-history-title">Clear History</h2>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>×</button>
</header>
<main class="modal__content">
<p>Are you sure you want to clear the dispatch history?</p>
</main>
<footer class="modal__footer">
<button id="confirm-clear-history-btn" class="button">Yes, Clear</button>
<button class="button" data-micromodal-close>No</button>
</footer>
</div>
</div>
</div>
<div class="loading-container hidden">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<script src="assets/js/micromodal.min.js"></script>
<script src="dist/main.js" type="module"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
if (typeof MicroModal !== 'undefined') {
MicroModal.init();
}
});
</script>
</body>
</html>