Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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
8 changes: 7 additions & 1 deletion actions/composer/determine-cache-directory/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"