Skip to content

Commit

Permalink
feat: corrected cocogitto workflow wtith git push to add changelog ch…
Browse files Browse the repository at this point in the history
…anges after bump
  • Loading branch information
yoctoyotta1024 committed May 2, 2024
1 parent 8f215d2 commit e59ea81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cocogitto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ jobs:
git-user-email: '[email protected]'

# The version number is accessible as a github action output
- name: Print Version
- name: Print version
run: "echo '${{ steps.release.outputs.version }}'"

- name: Generate Changelog
run: cog changelog --at ${{ steps.release.outputs.version }} -t remote > GITHUB_CHANGELOG.md

- name: Upload GitHub release
- name: Upload github release
uses: softprops/action-gh-release@v2
with:
body_path: GITHUB_CHANGELOG.md
repository: yoctoyotta1024/CLEO
tag_name: ${{ steps.release.outputs.version }}
20 changes: 1 addition & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,7 @@
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.

- - -
## [v0.3.0](https://github.com/yoctoyotta1024/CLEO/compare/v0.2.1..v0.3.0) - 2024-05-02
#### Bug Fixes
- use remote template instead of full_hash to match cog.toml - ([8529c75](https://github.com/yoctoyotta1024/CLEO/commit/8529c750462fd50fdce2874b9e2fc601fb70f073)) - clara.bayley
#### Features
- pre and post bump messages in cocogitto CI - ([71594cc](https://github.com/yoctoyotta1024/CLEO/commit/71594cccea48b7748a0351d1a860ca6d71b31ec1)) - clara.bayley

- - -

## [v0.2.1](https://github.com/yoctoyotta1024/CLEO/compare/v0.2.0..v0.2.1) - 2024-05-02
#### Bug Fixes
- changelog from v0.1.0 to v0.2.0 manually updated - ([d9052b8](https://github.com/yoctoyotta1024/CLEO/commit/d9052b8e9a08fef017accd357f567c3ef00c3dc0)) - clara.bayley

- - -

## [v0.2.0](https://github.com/yoctoyotta1024/CLEO/compare/c358c9069e701b42f1d33f5cdf6ad672e6aa03a5..v0.2.0) - 2024-05-02
#### Features
- changelog file added and release of new version included to github CI - ([6fdc113](https://github.com/yoctoyotta1024/CLEO/commit/6fdc1130cc5e1b79f602e5fe4f30e67f2fff5fe5)) - clara.bayley
- cocogitto configuration file - ([2990d63](https://github.com/yoctoyotta1024/CLEO/commit/2990d6321dd84895dfa57cc06653eb3996a53a35)) - clara.bayley
- new file for cocogitto in CI on pushes - ([c358c90](https://github.com/yoctoyotta1024/CLEO/commit/c358c9069e701b42f1d33f5cdf6ad672e6aa03a5)) - clara.bayley
## TODO: add text

- - -

Expand Down
3 changes: 2 additions & 1 deletion cog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ post_package_bump_hooks = []
pre_bump_hooks = [
"echo 'bumping version from {{latest}} to {{version}}'"
]

post_bump_hooks = [
"echo 'version bump done'"
"git push && echo 'bump done with chore commit for notes appended to changelog'",
]

[git_hooks]
Expand Down

0 comments on commit e59ea81

Please sign in to comment.