Skip to content

Commit 37af140

Browse files
authored
Merge pull request #52 from ergebnis/feature/working-directory
Enhancement: Add `working-directory` input for `composer/determine-cache-directory` action
2 parents bd66981 + 629ac1c commit 37af140

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

CHANGELOG.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## Unreleased
88

9-
For a full diff see [`1.1.0...main`][1.1.0...main].
9+
For a full diff see [`1.2.0...main`][1.2.0...main].
10+
11+
## [`1.2.0`][1.2.0]
12+
13+
For a full diff see [`1.1.0...1.2.0`][1.1.0...1.2.0].
14+
15+
### Added
16+
17+
- Added a `working-directory` input for the `composer/determine-cache-directory` action ([#52]), by [@localheinz]
1018

1119
## [`1.1.0`][1.1.0]
1220

@@ -26,12 +34,15 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
2634

2735
[1.0.0]: https://github.com/ergebnis/.github/releases/tag/1.0.0
2836
[1.1.0]: https://github.com/ergebnis/.github/releases/tag/1.1.0
37+
[1.2.0]: https://github.com/ergebnis/.github/releases/tag/1.2.0
2938

3039
[ca7f15d...1.0.0]: https://github.com/ergebnis/php-package-template/compare/ca7f15d...1.0.0
3140
[1.0.0...1.1.0]: https://github.com/ergebnis/php-package-template/compare/1.0.0...1.1.0
32-
[1.1.0...main]: https://github.com/ergebnis/php-package-template/compare/1.1.0...main
41+
[1.1.0...1.2.0]: https://github.com/ergebnis/php-package-template/compare/1.1.0...1.2.0
42+
[1.2.0...main]: https://github.com/ergebnis/php-package-template/compare/1.2.0...main
3343

3444
[#47]: https://github.com/ergebnis/.github/pull/47
3545
[#48]: https://github.com/ergebnis/.github/pull/48
46+
[#52]: https://github.com/ergebnis/.github/pull/52
3647

3748
[@localheinz]: https://github.com/localheinz

actions/composer/determine-cache-directory/action.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ name: "Determine composer cache directory"
77

88
description: "Determines the composer cache directory and exports it as COMPOSER_CACHE_DIR environment variable"
99

10+
inputs:
11+
working-directory:
12+
default: "."
13+
description: "Which directory to use as working directory"
14+
required: false
15+
1016
runs:
1117
using: "composite"
1218

1319
steps:
1420
- name: "Determine composer cache directory"
15-
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"
21+
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir --working-dir=${{ inputs.working-directory }})\" >> $GITHUB_ENV"
1622
shell: "bash"

0 commit comments

Comments
 (0)