Skip to content

Commit 18c772b

Browse files
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 name
1 parent 37b30d4 commit 18c772b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.craft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ artifactProvider:
99
name: github
1010
config:
1111
artifacts:
12-
ci.yml:
12+
Build:
1313
- 'sentry-*'
1414
- 'npm-package'
1515
- 'gh-pages'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Build
22

33
on:
44
push:

0 commit comments

Comments
 (0)