diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml new file mode 100644 index 0000000..0200e2b --- /dev/null +++ b/.github/workflows/update-changelog.yml @@ -0,0 +1,29 @@ +name: "Update Changelog" + +on: + release: + types: [released] + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + ref: ${{ github.ref_name }} + + - name: Update Changelog + uses: stefanzweifel/changelog-updater-action@v1 + with: + latest-version: ${{ github.event.release.tag_name }} + release-notes: ${{ github.event.release.body }} + compare-url-target-revision: ${{ github.event.release.target_commitish }} + + - name: Commit updated CHANGELOG + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: ${{ github.event.release.target_commitish }} + commit_message: Update CHANGELOG.md + file_pattern: CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 22cab96..72d4699 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release Notes -## [Unreleased](https://github.com/laravel/tinker/compare/v2.6.3...2.x) +## [Unreleased](https://github.com/laravel/tinker/compare/v2.7.0...2.x) + + +## [v2.7.0 (2022-01-12)](https://github.com/laravel/tinker/compare/v2.6.3...v2.7.0) + +### Changed +- Laravel 9 and psych v0.11.x support ([#139](https://github.com/laravel/tinker/pull/139)) ## [v2.6.3 (2021-12-07)](https://github.com/laravel/tinker/compare/v2.6.2...v2.6.3) diff --git a/src/Console/TinkerCommand.php b/src/Console/TinkerCommand.php index c408993..854fb13 100644 --- a/src/Console/TinkerCommand.php +++ b/src/Console/TinkerCommand.php @@ -102,7 +102,7 @@ protected function getCommands() $config = $this->getLaravel()->make('config'); foreach ($config->get('tinker.commands', []) as $command) { - $commands[] = $this->getApplication()->resolve($command); + $commands[] = $this->getLaravel()->make($command); } return $commands;