diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index c3736b0f..a18561b0 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -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." \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b92ff5c..e3cc008f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -8,27 +8,133 @@ - - +# [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) + + +