Skip to content

fix: expand date in auto-dependency PR body using step output#146

Merged
DavidKRK merged 1 commit into
auto-update-dependenciesfrom
copilot/fix-typo-in-documentation
Apr 4, 2026
Merged

fix: expand date in auto-dependency PR body using step output#146
DavidKRK merged 1 commit into
auto-update-dependenciesfrom
copilot/fix-typo-in-documentation

Conversation

Copilot AI commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

$(date +%Y-%m-%d) in the body: field of peter-evans/create-pull-request is a plain YAML string — shell substitution never runs, so PR #145's description showed the literal text instead of the actual date.

Changes

  • Added Get current date step before Create Pull Request that writes the date to $GITHUB_OUTPUT
  • Updated PR body to reference ${{ steps.get_date.outputs.date }} instead of the unexpanded shell substitution
- name: Get current date
  id: get_date
  run: echo "date=$(date +%Y-%m-%d)" >> "$GITHUB_OUTPUT"

- name: Create Pull Request
  uses: peter-evans/create-pull-request@v6
  with:
    body: |
      Mise à jour automatique des dépendances npm effectuée le ${{ steps.get_date.outputs.date }}

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 date step that writes a date output to $GITHUB_OUTPUT.
  • Updated the peter-evans/create-pull-request body: to use ${{ steps.get_date.outputs.date }}.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavidKRK DavidKRK marked this pull request as ready for review April 4, 2026 02:13
@DavidKRK DavidKRK merged commit 5442f80 into auto-update-dependencies Apr 4, 2026
6 checks passed
@DavidKRK DavidKRK deleted the copilot/fix-typo-in-documentation branch June 20, 2026 15:09
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.

3 participants