-
Notifications
You must be signed in to change notification settings - Fork 6
Making reusable-regenerate-readme GitHub-y #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,10 +9,9 @@ concurrency: | |||||||
| group: ${{ github.workflow }}-${{ github.ref }} | ||||||||
| cancel-in-progress: true | ||||||||
|
|
||||||||
|
|
||||||||
| jobs: | ||||||||
|
|
||||||||
| regenerate-readme: #---------------------------------------------------------- | ||||||||
| regenerate-readme: | ||||||||
| name: Regenerate README.md file | ||||||||
| runs-on: ubuntu-latest | ||||||||
| if: ${{ github.repository_owner == 'wp-cli' && ! contains(fromJson('[".github", "wp-cli", "wp-cli-bundle", "wp-super-cache-cli", "php-cli-tools", "wp-config-transformer", "wp-cli.github.com"]'), github.event.repository.name) }} | ||||||||
|
|
@@ -21,51 +20,55 @@ jobs: | |||||||
| uses: actions/checkout@v3 | ||||||||
|
|
||||||||
| - name: Set up PHP envirnoment | ||||||||
|
||||||||
| - name: Set up PHP envirnoment | |
| - name: Set up PHP environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put things in chronological order.
env is prerequisite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protect shell scripts. Use long options.
Copilot
AI
Nov 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The multi-line string format will introduce unwanted leading whitespace. The command substitution $(date --utc \"+%Y-%m\") will be executed with leading spaces, which could cause issues. Use a plain string instead: custom-cache-suffix: $(date --utc \"+%Y-%m\")
| custom-cache-suffix: | | |
| $(date --utc "+%Y-%m") | |
| custom-cache-suffix: $(date --utc "+%Y-%m") |
Copilot
AI
Nov 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove trailing whitespace after the step definition.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may get emotional.
π¨π»βπ¨