Commit b9ca784
authored
ci build: prevent duplicated GitHub Release from being created (#103)
## Problem
The following error happened during release.
```
Run gh release create "${GITHUB_REF_NAME}" \
HTTP 422: Validation Failed (https://api.github.com/repos/mroonga/docker/releases)
Release.tag_name already exists
Error: Process completed with exit code 1.
```
## Cause
The `Create GitHub Release` step only checked
`github.ref_type == 'tag'`, so every matrix entry
(e.g. "mysql-8.0" and "mysql-8.4") tried to publish the release page.
## Solution
We add the condtion that we will create Release page only when the tag
matches the workflow's `matrix.id`.1 parent 07b05f5 commit b9ca784
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments