diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e8e701..be130f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased -For a full diff see [`1.1.0...main`][1.1.0...main]. +For a full diff see [`1.2.0...main`][1.2.0...main]. + +## [`1.2.0`][1.2.0] + +For a full diff see [`1.1.0...1.2.0`][1.1.0...1.2.0]. + +### Added + +- Added a `working-directory` input for the `composer/determine-cache-directory` action ([#52]), by [@localheinz] ## [`1.1.0`][1.1.0] @@ -26,12 +34,15 @@ For a full diff see [`1.0.0...main`][1.0.0...main]. [1.0.0]: https://github.com/ergebnis/.github/releases/tag/1.0.0 [1.1.0]: https://github.com/ergebnis/.github/releases/tag/1.1.0 +[1.2.0]: https://github.com/ergebnis/.github/releases/tag/1.2.0 [ca7f15d...1.0.0]: https://github.com/ergebnis/php-package-template/compare/ca7f15d...1.0.0 [1.0.0...1.1.0]: https://github.com/ergebnis/php-package-template/compare/1.0.0...1.1.0 -[1.1.0...main]: https://github.com/ergebnis/php-package-template/compare/1.1.0...main +[1.1.0...1.2.0]: https://github.com/ergebnis/php-package-template/compare/1.1.0...1.2.0 +[1.2.0...main]: https://github.com/ergebnis/php-package-template/compare/1.2.0...main [#47]: https://github.com/ergebnis/.github/pull/47 [#48]: https://github.com/ergebnis/.github/pull/48 +[#52]: https://github.com/ergebnis/.github/pull/52 [@localheinz]: https://github.com/localheinz diff --git a/actions/composer/determine-cache-directory/action.yaml b/actions/composer/determine-cache-directory/action.yaml index 4d91aa1..d563d86 100644 --- a/actions/composer/determine-cache-directory/action.yaml +++ b/actions/composer/determine-cache-directory/action.yaml @@ -7,10 +7,16 @@ name: "Determine composer cache directory" description: "Determines the composer cache directory and exports it as COMPOSER_CACHE_DIR environment variable" +inputs: + working-directory: + default: "." + description: "Which directory to use as working directory" + required: false + runs: using: "composite" steps: - name: "Determine composer cache directory" - run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" + run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir --working-dir=${{ inputs.working-directory }})\" >> $GITHUB_ENV" shell: "bash"