Skip to content

Commit

Permalink
chores(ci): update changelog workflow (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 authored May 27, 2024
1 parent 688001a commit 0cf6ec6
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 62 deletions.
61 changes: 48 additions & 13 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,66 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Ensure all history is fetched
fetch-depth: 1

- name: Setup Node.js (if using a Node.js tool for changelog generation)
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Generate Changelog Update
- name: Configure Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Check if "auto-changelog-update-do-not-create-manually" branch exists
id: check_branch
run: |
if [ -n "$(git ls-remote --heads origin auto-changelog-update-do-not-create-manually)" ]; then
git fetch origin auto-changelog-update-do-not-create-manually
echo "branch_exists=true" >> $GITHUB_ENV
else
echo "branch_exists=false" >> $GITHUB_ENV
fi
- name: Generate Changelog Update and update if branch exists
run: |
# Example: Using conventional-changelog to update CHANGELOG.md
npm install -g conventional-changelog-cli
conventional-changelog -p angular -i CHANGELOG.md -s
if [ "$branch_exists" == "true" ]; then
git checkout auto-changelog-update-do-not-create-manually
git merge main --strategy-option theirs --allow-unrelated-histories --no-edit
conventional-changelog -p angular -i CHANGELOG.md -s
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md [skip ci]"
git push origin auto-changelog-update-do-not-create-manually
exit 0
else
git checkout main
git checkout -b auto-changelog-update-do-not-create-manually
git push origin auto-changelog-update-do-not-create-manually
conventional-changelog -p angular -i CHANGELOG.md -s
fi
- name: Create or Update Pull Request
- name: Create Pull Request
if: env.branch_exists == 'false'
id: cpr
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update CHANGELOG.md [skip ci]"
title: "Automated Changelog Update [skip ci]"
body: "Update the CHANGELOG.md with recent commits. [skip ci]"
branch: auto-changelog-update-${{ github.run_number }}
title: "Chore(changelog): Automated Changelog Update [skip ci]"
body: "Update the CHANGELOG.md with recent pushes to branch main."
base: "main"
branch: "auto-changelog-update-do-not-create-manually"
delete-branch: true
branch-suffix: timestamp

- name: Check if PR needs to be updated
- name: Check outputs
if: env.branch_exists == 'false'
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
- name: Log if PR updated
if: steps.cpr.outputs.pull-request-operation == 'updated'
run: |
echo "Changelog PR updated due to new commit to main."
echo "Changelog PR updated due to new commit to main."
204 changes: 155 additions & 49 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [](https://github.com/dymensionxyz/rollapp-evm/compare/v2.2.0-rc01...v) (2024-05-12)
# [](https://github.com/dymensionxyz/rollapp-evm/compare/v2.2.0-rc01...v) (2024-05-20)


### Bug Fixes
Expand All @@ -8,27 +8,133 @@



<!--
Guiding Principles:
# [2.2.0-rc01](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.3-rc02...v2.2.0-rc01) (2024-05-09)

Changelogs are for humans, not machines.
There should be an entry for every single version.
The same types of changes should be grouped.
Versions and sections should be linkable.
The latest version comes first.
The release date of each version is displayed.
Mention whether you follow Semantic Versioning.

Usage:
### Features

* **ante:** allow doing vesting txs based on whitelist ([#216](https://github.com/dymensionxyz/rollapp-evm/issues/216)) ([e1c968f](https://github.com/dymensionxyz/rollapp-evm/commit/e1c968f3dc53d0d55755858467fff3aa8b8a669f))



## [2.1.3-rc02](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.3...v2.1.3-rc02) (2024-05-03)


### Bug Fixes

* **deps:** bump dymint to `v1.1.3-rc02` to fix unsync issue when da is down ([#227](https://github.com/dymensionxyz/rollapp-evm/issues/227)) ([6c745ac](https://github.com/dymensionxyz/rollapp-evm/commit/6c745ac8ace927f41b163d662d0c60f5797cde96))



## [2.1.3-rc01](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.2...v2.1.3-rc01) (2024-05-02)


### Bug Fixes

* **deps:** bump dymint to v1.1.3-rc01 to fix full node p2p initial sync issues ([#225](https://github.com/dymensionxyz/rollapp-evm/issues/225)) ([37c7b0f](https://github.com/dymensionxyz/rollapp-evm/commit/37c7b0f907ea97149856f3d344c0a2255ff81c79))



## [2.1.2](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.1...v2.1.2) (2024-05-01)


### Bug Fixes

* **deps:** bump dymint to v1.1.2 to fix full node sync issues ([#222](https://github.com/dymensionxyz/rollapp-evm/issues/222)) ([bbcbf5a](https://github.com/dymensionxyz/rollapp-evm/commit/bbcbf5ac97d18ec70aa80ff61b79532a32494258))



## [2.1.1](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0...v2.1.1) (2024-04-30)


### Bug Fixes

* **deps:** bumped dymint to v1.1.1 to fix da health event fast emmision ([#221](https://github.com/dymensionxyz/rollapp-evm/issues/221)) ([95743b4](https://github.com/dymensionxyz/rollapp-evm/commit/95743b4648b18bd00224563f2144f0e1960b2c5f))



# [2.1.0](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc09...v2.1.0) (2024-04-29)



# [2.1.0-rc09](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc08...v2.1.0-rc09) (2024-04-29)


### Bug Fixes

* **build:** Added ledger and netgo support in makefile when make install ([#213](https://github.com/dymensionxyz/rollapp-evm/issues/213)) ([1be4bfc](https://github.com/dymensionxyz/rollapp-evm/commit/1be4bfc05dffcdb9139d3d57b1007179ceb4aa20))
* **deps:** bump evmos to v0.4.2 to fix vesting msgs not blocked in eip712 ante handler ([#218](https://github.com/dymensionxyz/rollapp-evm/issues/218)) ([8176ee3](https://github.com/dymensionxyz/rollapp-evm/commit/8176ee362189a37c54f47023cc32c011165c7283))



# [2.1.0-rc08](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc07...v2.1.0-rc08) (2024-04-28)


### Bug Fixes

* **deps:** bumped dymint to v1.1.0-rc05 to fix da sync issue ([#211](https://github.com/dymensionxyz/rollapp-evm/issues/211)) ([2ef1d93](https://github.com/dymensionxyz/rollapp-evm/commit/2ef1d936836f70ca956d5996d6038024b18e75bf))



# [2.1.0-rc07](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc06...v2.1.0-rc07) (2024-04-28)


### Bug Fixes

* **deps:** bump dymint to v1.1.0-rc04 to fix account error not causing panic ([#210](https://github.com/dymensionxyz/rollapp-evm/issues/210)) ([5636e41](https://github.com/dymensionxyz/rollapp-evm/commit/5636e413b15d2a3caf0afe2873c4e7fc9c963aad))


Change log entries are to be added to the Unreleased section under the
appropriate stanza (see below). Each entry should ideally include a tag and
the GitHub issue reference in the following format:

# [2.1.0-rc06](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc05...v2.1.0-rc06) (2024-04-28)


### Features

* set bech32 prefix without changing source code ([#207](https://github.com/dymensionxyz/rollapp-evm/issues/207)) ([d750eda](https://github.com/dymensionxyz/rollapp-evm/commit/d750eda7ffb96028a70d6159e0c4573e1c2bf10d))



# [2.1.0-rc05](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc04...v2.1.0-rc05) (2024-04-27)


### Bug Fixes

* **readme:** fix governor creation and block time substition missing in readme ([#206](https://github.com/dymensionxyz/rollapp-evm/issues/206)) ([f612207](https://github.com/dymensionxyz/rollapp-evm/commit/f612207fbc798da1772ea0444f1fa3658a010bf6))



# [2.1.0-rc04](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc03...v2.1.0-rc04) (2024-04-27)


### Bug Fixes

* **deps:** update evmos tag v0.4.1 to block vesting account ([#203](https://github.com/dymensionxyz/rollapp-evm/issues/203)) ([56eb2c1](https://github.com/dymensionxyz/rollapp-evm/commit/56eb2c1326ebcf7ea3a45a017f252a5868351d24))
* **deps:** updated dymint to v1.1.0-rc03 to solve gossip bug ([#205](https://github.com/dymensionxyz/rollapp-evm/issues/205)) ([2bd1daa](https://github.com/dymensionxyz/rollapp-evm/commit/2bd1daa701e0568589b2ff8d235805e3812df59f))
* **deps:** updated protobuf to v1.33.0 due to vulnerability ([#204](https://github.com/dymensionxyz/rollapp-evm/issues/204)) ([ea4d3f1](https://github.com/dymensionxyz/rollapp-evm/commit/ea4d3f14d4828d54f7dff543caddd704e6339ae8))



# [2.1.0-rc03](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc02...v2.1.0-rc03) (2024-04-26)


### Bug Fixes

* **local script:** updated with latest relayer version and extra eips ([#199](https://github.com/dymensionxyz/rollapp-evm/issues/199)) ([b032ae1](https://github.com/dymensionxyz/rollapp-evm/commit/b032ae1d19af005bc5a5f94c7e9e67ea81701a26))



# [2.1.0-rc02](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-rc01...v2.1.0-rc02) (2024-04-26)



# [2.1.0-rc01](https://github.com/dymensionxyz/rollapp-evm/compare/v2.2.0-alpha...v2.1.0-rc01) (2024-04-26)


### Bug Fixes

* **app:** Changed to use sequencerKeeper instead of stakingKeepr in ibcKeeper ([#195](https://github.com/dymensionxyz/rollapp-evm/issues/195)) ([cec299f](https://github.com/dymensionxyz/rollapp-evm/commit/cec299f16e6dba780c0832e6bea53275922cfdd7))
* **app:** fixed bech32 on account keeper to not be hardcoded ([#165](https://github.com/dymensionxyz/rollapp-evm/issues/165)) ([750d1e7](https://github.com/dymensionxyz/rollapp-evm/commit/750d1e70ad052daf7b2942bcecaf0dddfbc17d90))
* **deps:** bumps `block-explorer-rpc-cosmos v1.0.3` & `evm-block-explorer-rpc-cosmos` v1.0.3 ([#142](https://github.com/dymensionxyz/rollapp-evm/issues/142)) ([ea5e5fd](https://github.com/dymensionxyz/rollapp-evm/commit/ea5e5fdc854d5a4fa4079c4d79b79732e78cf9d8))
* **init scripts:** update account-prefix in ibc script ([#190](https://github.com/dymensionxyz/rollapp-evm/issues/190)) ([25be6c3](https://github.com/dymensionxyz/rollapp-evm/commit/25be6c3dda7885870d514438548e10daad45f4d7))
* **local script:** updated default genesis created on extended guide with EIP 3855 ([#183](https://github.com/dymensionxyz/rollapp-evm/issues/183)) ([d201be4](https://github.com/dymensionxyz/rollapp-evm/commit/d201be4ee6757c912ecae568207c1ea358387cae))
* make sure that accounts are not double funded during eibc channel creation ([6e5b6f1](https://github.com/dymensionxyz/rollapp-evm/commit/6e5b6f1ac826ccf926815e7d0d73fe004b5f5842))
* multiple fixes to advance readme features ([#141](https://github.com/dymensionxyz/rollapp-evm/issues/141)) ([469d39f](https://github.com/dymensionxyz/rollapp-evm/commit/469d39fc79591cdae4455839db1546cc5bd9c053))
* **readme:** broken links have been renewed. ([#78](https://github.com/dymensionxyz/rollapp-evm/issues/78)) ([c7df6f2](https://github.com/dymensionxyz/rollapp-evm/commit/c7df6f29c8b9981d7a998be4091d2e96c19647a3))
* **scripts:** add an option to skip evm base fees ([#162](https://github.com/dymensionxyz/rollapp-evm/issues/162)) ([ea51eee](https://github.com/dymensionxyz/rollapp-evm/commit/ea51eee8d66dbba587d6ec00395418a1f08b99a8))
Expand All @@ -37,58 +143,58 @@ the GitHub issue reference in the following format:
* **test scripts:** make alice and bob keys in .rollap dir ([#147](https://github.com/dymensionxyz/rollapp-evm/issues/147)) ([b6ee646](https://github.com/dymensionxyz/rollapp-evm/commit/b6ee64640af1b528728414bded6a70216a4b5fdf))
* updated block size and evm `no_base_fee` ([#160](https://github.com/dymensionxyz/rollapp-evm/issues/160)) ([876ccad](https://github.com/dymensionxyz/rollapp-evm/commit/876ccad96765d0d3bd279903c552ab483ecf6b9a))

* (<tag>) \#<issue-number> message

Tag must include `sql` if having any changes relate to schema
### Features

The issue numbers will later be link-ified during the release process,
so you do not have to worry about including a link manually, but you can if you wish.
* add swagger config and make scripts ([#130](https://github.com/dymensionxyz/rollapp-evm/issues/130)) ([41718e4](https://github.com/dymensionxyz/rollapp-evm/commit/41718e4d4098e6bf18117c31b514b2cc226a331f))
* **be:** integrate block explorer Json-RPC server ([#132](https://github.com/dymensionxyz/rollapp-evm/issues/132)) ([d73b1c4](https://github.com/dymensionxyz/rollapp-evm/commit/d73b1c451b93f04a1db5a73c4c8c78fc21729208))

Types of changes (Stanzas):

"Features" for new features.
"Improvements" for changes in existing functionality.
"Deprecated" for soon-to-be removed features.
"Bug Fixes" for any bug fixes.
"Client Breaking" for breaking CLI commands and REST routes used by end-users.
"API Breaking" for breaking exported APIs used by developers building on SDK.
"State Machine Breaking" for any changes that result in a different AppState
given same genesisState and txList.

If any PR belong to multiple types of change, reference it into all types with only ticket id, no need description (convention)
# [2.2.0-alpha](https://github.com/dymensionxyz/rollapp-evm/compare/v2.1.0-alpha...v2.2.0-alpha) (2024-03-26)

Ref: https://keepachangelog.com/en/1.0.0/
-->

<!--
Templates for Unreleased:
### Bug Fixes

## Unreleased
* updated init.sh to set gensis operator address ([#123](https://github.com/dymensionxyz/rollapp-evm/issues/123)) ([7cb34f8](https://github.com/dymensionxyz/rollapp-evm/commit/7cb34f84740a244fb168a2c2864303cbdcffe827))

### Features

### Improvements

# [2.1.0-alpha](https://github.com/dymensionxyz/rollapp-evm/compare/v2.0.0-beta...v2.1.0-alpha) (2024-03-22)


### Bug Fixes

### Client Breaking
* update local setup scripts ([#100](https://github.com/dymensionxyz/rollapp-evm/issues/100)) ([8e8accc](https://github.com/dymensionxyz/rollapp-evm/commit/8e8accc602449481a3188dfe23c147e4ade48877))
* Update README.md rollapp_id env var ([1cf5795](https://github.com/dymensionxyz/rollapp-evm/commit/1cf57952a39db11623a437b5d9c518da3635aff2))
* Updated libp2p to use our fork ([#90](https://github.com/dymensionxyz/rollapp-evm/issues/90)) ([1bc2110](https://github.com/dymensionxyz/rollapp-evm/commit/1bc21109927dcd649e3c04cd624da36f5b3c232c))

### API Breaking

### State Machine Breaking

-->
# [2.0.0-beta](https://github.com/dymensionxyz/rollapp-evm/compare/v1.0.0-beta...v2.0.0-beta) (2024-01-15)


### Bug Fixes

* cleaning file descriptors ([#69](https://github.com/dymensionxyz/rollapp-evm/issues/69)) ([18f7558](https://github.com/dymensionxyz/rollapp-evm/commit/18f7558455b74ee097c525fc418375456b90bb00))
* hotfix for ibc-go due to val-set hotfix done on hub for froopyland. ([#73](https://github.com/dymensionxyz/rollapp-evm/issues/73)) ([40c6ec4](https://github.com/dymensionxyz/rollapp-evm/commit/40c6ec4c3f899268bd93cf95dee98aa00410fe18))

# Changelog

## Unreleased

### Improvements
# [1.0.0-beta](https://github.com/dymensionxyz/rollapp-evm/compare/v0.1.0-rc3...v1.0.0-beta) (2023-10-19)

- (deps) [#138](https://github.com/dymensionxyz/rollapp-evm/issues/138) Bumps `block-explorer-rpc-cosmos v1.0.2` & `evm-block-explorer-rpc-cosmos v1.0.2`
- (deps) [#151](https://github.com/dymensionxyz/rollapp-evm/issues/151) Bumps `block-explorer-rpc-cosmos v1.0.2` & `evm-block-explorer-rpc-cosmos v1.1.0`

### Bug Fixes

- (deps) [#142](https://github.com/dymensionxyz/rollapp-evm/issues/142) Bumps `block-explorer-rpc-cosmos v1.0.3` & `evm-block-explorer-rpc-cosmos v1.0.3`
- (deps) [#247](https://github.com/dymensionxyz/rollapp-evm/issues/247) Bumps `block-explorer-rpc-cosmos v1.2.3` & `evm-block-explorer-rpc-cosmos v1.1.3`
* reverted bad deps ([#38](https://github.com/dymensionxyz/rollapp-evm/issues/38)) ([545a367](https://github.com/dymensionxyz/rollapp-evm/commit/545a367643d7b1f6e2dbdce1cdb436fdb56000fe))



# [0.1.0-rc2](https://github.com/dymensionxyz/rollapp-evm/compare/v0.1.0-rc1...v0.1.0-rc2) (2023-07-31)



# 0.1.0-rc1 (2023-07-27)



0 comments on commit 0cf6ec6

Please sign in to comment.