| 1 |
Changie expects to be the first part of the release process as it modifies files |
| 2 |
that are kept in the repository. |
| 3 |
|
| 4 |
A method used by Changie itself is to detect changes to the root CHANGELOG file |
| 5 |
as a trigger to begin the release process. |
| 6 |
Below is how you can do that in a GitHub action. |
| 7 |
|
| 8 |
```yaml |
| 9 |
on: |
| 10 |
push: |
| 11 |
branches: [ main ] # your default branch if different |
| 12 |
paths: [ CHANGELOG.md ] # your changelog file if different |
| 13 |
|
| 14 |
jobs: |
| 15 |
release: |
| 16 |
# do your releasing here |
| 17 |
``` |
| 18 |
|
| 19 |
Then you can use Changie to update your changelog and let your action do the rest. |