Read your README and copy the last information about changes for the new tag/release.
Create the README file on the repository and add the changelog structure. Your struct should seem with: (Ignore "\" on the example)
...
## Changelog
\<!-- Version start @@ {"version": "v0.1.1", "tagtitle": "..."} --> Start of the last changelog
- ### v0.1.1
- The Changelog action will capture the text between `<!-- Version start -->` and `<!-- Version end -->`;
- You can add `@@` and a JSON after to receive it on output;
- See raw this file for a real example.
\<!-- Version end --> # End of the last changelog
- ### v0.1.0
- any text
Workflow example
steps:
- name: Read the README.md
id: changelog
uses: Jeconias/[email protected]
with:
path: "./README.md" # The path to read a README.md file. (Optional)
- name: Showing the last changelog
run: echo "${{steps.ID.outputs.changelog}} | ${{steps.ID.outputs.version}}"
-
- Fix README.
-
- Fix example.
-
- Fix README and added a condition to verify if should create a new release on workflow.
-
- Fix imports of main.ts
- Updated main.yml to use the Changelog Action to reading the README.md and create a release.
-
- Initial