From 1c5f20b159a1a40f27fd27da4bbc50d6d935c5f8 Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Thu, 2 May 2024 18:09:08 +0200 Subject: [PATCH] feat: corrected cocogitto workflow wtith git push to add changelog changes after bump --- .github/workflows/cocogitto.yml | 5 ++--- CHANGELOG.md | 20 +------------------- cog.toml | 3 ++- 3 files changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/cocogitto.yml b/.github/workflows/cocogitto.yml index 6536f45f0..cf4bea072 100644 --- a/.github/workflows/cocogitto.yml +++ b/.github/workflows/cocogitto.yml @@ -41,15 +41,14 @@ jobs: git-user-email: 'yoctoyotta1024@yahoo.com' # 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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index b267044f7..aee918218 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 - - - diff --git a/cog.toml b/cog.toml index ff0b50f28..10466809d 100644 --- a/cog.toml +++ b/cog.toml @@ -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]