diff --git a/.github/workflows/changelogger.yml b/.github/workflows/changelogger.yml index 77f97632bd0..887930b1e4a 100644 --- a/.github/workflows/changelogger.yml +++ b/.github/workflows/changelogger.yml @@ -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" \ No newline at end of file + run: php tools/monorepo/check-changelogger-use.php --debug "$BASE" "$HEAD" \ No newline at end of file diff --git a/tools/monorepo/check-changelogger-use.php b/tools/monorepo/check-changelogger-use.php index 3eaeef83896..cfcc8bac982 100644 --- a/tools/monorepo/check-changelogger-use.php +++ b/tools/monorepo/check-changelogger-use.php @@ -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; }