Fix github action and correct error in detecting change file
This commit is contained in:
parent
e87cd7128b
commit
2c4e373192
|
@ -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"
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue