Skip to content

Commit

Permalink
Merge pull request #52 from ergebnis/feature/working-directory
Browse files Browse the repository at this point in the history
Enhancement: Add `working-directory` input for `composer/determine-cache-directory` action
  • Loading branch information
localheinz authored Jan 6, 2022
2 parents bd66981 + 629ac1c commit 37af140
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
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"

0 comments on commit 37af140

Please sign in to comment.