Fix github action and correct error in detecting change file

This commit is contained in:
Jonathan Sadowski 2022-03-31 21:53:12 -05:00
parent e87cd7128b
commit 2c4e373192
2 changed files with 3 additions and 17 deletions

View File

@ -18,23 +18,9 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:'2.3.2'
- name: Get Composer cache directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use composer cache
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Check change files are touched for touched projects
env:
BASE: ${{ github.event.pull_request.base.sha }}
HEAD: ${{ github.event.pull_request.head.sha }}
run: tools/check-changelogger-use.php --debug "$BASE" "$HEAD"
run: php tools/monorepo/check-changelogger-use.php --debug "$BASE" "$HEAD"

View File

@ -127,8 +127,8 @@ foreach ( $composer_projects as $project_path ) {
}
$data = isset( $data['extra']['changelogger'] ) ? $data['extra']['changelogger'] : array();
$data += array(
'changelog' => 'CHANGELOG.md',
'changes-dir' => 'changelog',
'changelog' => $project_path . '/CHANGELOG.md',
'changes-dir' => $project_patch . '/changelog',
);
$changelogger_projects[ $project_path ] = $data;
}