Commit 998c825
authored
fix: deployment pipeline (#81)
Remove auto-trigger-code-samples and instead run generate-code-samples
every 4 hours.
The previous setup would trigger generate-code-samples, but none of the
downstream workflows (the next one being .github/workflows/deploy-pages.yml).
The rules for GitHub are as follows:
If workflow A triggers workflow B in a way that is "automated", then B
will run but its completion will not trigger downstream workflows C.
"automated" here is determined by the use of `GITHUB_TOKEN`
gh workflow run generate-code-samples.yml
implicitly uses `GITHUB_TOKEN`.
The current setup means that most of the pipeline runs redundantly (e.g.
we will generate code samples and check them in even with no changes) up
until the glean developer site's trigger-redeploy.yml[^1] which exits
early if there are no changes.
[1]: https://github.com/gleanwork/glean-developer-site/blob/8fa1fb6cfb44c457ed135eca678d7a9da82af4f4/.github/workflows/trigger-redeploy.yml#L1-L1151 parent 0a4a266 commit 998c825
File tree
3 files changed
+26
-64
lines changed- .github/workflows
3 files changed
+26
-64
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
27 | 42 | | |
| 43 | + | |
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
31 | 47 | | |
32 | 48 | | |
| 49 | + | |
33 | 50 | | |
34 | 51 | | |
35 | 52 | | |
36 | 53 | | |
37 | 54 | | |
| 55 | + | |
38 | 56 | | |
39 | 57 | | |
40 | 58 | | |
| 59 | + | |
41 | 60 | | |
42 | 61 | | |
43 | 62 | | |
44 | 63 | | |
45 | 64 | | |
| 65 | + | |
46 | 66 | | |
47 | 67 | | |
48 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
0 commit comments