Skip to content

Simplify Composer-related caching in GitHub Actions#11280

Open
desrosj wants to merge 2 commits intoWordPress:trunkfrom
desrosj:simplify-composer-caching
Open

Simplify Composer-related caching in GitHub Actions#11280
desrosj wants to merge 2 commits intoWordPress:trunkfrom
desrosj:simplify-composer-caching

Conversation

@desrosj
Copy link
Member

@desrosj desrosj commented Mar 18, 2026

This simplifies Composer-related caching by eliminating the need for an extra step to create a date-based value to use in cache keys.

Trac ticket: Core-64227.

Use of AI Tools

Used Claude to create the initial draft of these changes.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@desrosj desrosj self-assigned this Mar 18, 2026
@desrosj desrosj requested a review from johnbillion March 18, 2026 03:42
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props desrosj.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

.cache/phpcs-src.json
.cache/phpcs-tests.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-php-${{ inputs.php-version }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
key: ${{ runner.os }}-date-$(/bin/date -u --date='last Mon' "+%F")-php-${{ inputs.php-version }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a shame, but this doesn't work. Will need to keep the extra job to generate a date for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant