Commit 18c772b
authored
ci: match workflow name instead of filename in artifact filter (#229)
## Summary
Publishing with craft fails because the artifact filter key in
`.craft.yml` used the workflow **filename** (`ci.yml`) instead of the
workflow **name** (`CI`).
Craft's `GitHubArtifactProvider.filterWorkflowRuns()` matches config
keys against the workflow run's `name` field, not the filename. The
filter `ci.yml` becomes regex `/^ci\.yml$/` which never matches `"CI"`,
causing all workflow runs to be filtered out and artifact retrieval to
fail after 3 retries.
## Changes
- Rename the CI workflow from `CI` to `Build` (better describes its
purpose)
- Update `.craft.yml` artifact filter key to `Build` to match the
workflow name1 parent 37b30d4 commit 18c772b
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments