fix: expand date in auto-dependency PR body using step output#146
Merged
DavidKRK merged 1 commit intoApr 4, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/0a1c7118-719b-4db2-abb8-2a9c0266b9eb Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
DavidKRK
April 4, 2026 02:09
View session
|
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the auto-dependency workflow’s pull request description so the current date is actually expanded (instead of showing a literal $(date +%Y-%m-%d)), by capturing the date in a prior step and reusing it via step outputs.
Changes:
- Added a
Get current datestep that writes adateoutput to$GITHUB_OUTPUT. - Updated the
peter-evans/create-pull-requestbody:to use${{ steps.get_date.outputs.date }}.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
DavidKRK
approved these changes
Apr 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
$(date +%Y-%m-%d)in thebody:field ofpeter-evans/create-pull-requestis a plain YAML string — shell substitution never runs, so PR #145's description showed the literal text instead of the actual date.Changes
Get current datestep beforeCreate Pull Requestthat writes the date to$GITHUB_OUTPUT${{ steps.get_date.outputs.date }}instead of the unexpanded shell substitution