Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 15, 2025

This PR resolves the deprecation warning about the set-output command by upgrading @actions/core from v1.10.0 to v1.11.1.

Problem

The action was generating deprecation warnings:

The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files.

Root Cause

The project was using @actions/core v1.10.0, which still used the deprecated set-output command internally when calling setOutput().

Solution

Upgraded to @actions/core v1.11.1, which automatically uses the new environment file approach when the GITHUB_OUTPUT environment variable is available (which it is in modern GitHub Actions runners).

How it works

The updated setOutput function now:

  1. First checks if GITHUB_OUTPUT environment variable is set
  2. If available, writes outputs to the environment file using the new format with delimiters
  3. Only falls back to the deprecated set-output command for backward compatibility

Testing

Verified that setOutput calls now write to the GITHUB_OUTPUT environment file using the proper format:

test_field_read_value<<ghadelimiter_5de0736c-660a-4794-8a0a-2c0bcde654ae
test_read_value
ghadelimiter_5de0736c-660a-4794-8a0a-2c0bcde654ae

Changes

  • Updated @actions/core from ^1.10.0 to ^1.11.1 in package.json
  • Rebuilt dist/index.js with the updated dependency
  • No source code changes required

Fixes #155.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits August 15, 2025 18:02
…tion warning

Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
…ld dist/

Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade to Using Environment Files - set-output Deprecated Upgrade @actions/core to fix set-output deprecation warning Aug 15, 2025
Copilot AI requested a review from benbalter August 15, 2025 18:08
@benbalter benbalter marked this pull request as ready for review August 15, 2025 18:12
Copilot AI review requested due to automatic review settings August 15, 2025 18:12
Copy link
Contributor

Copilot AI left a comment

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 resolves the deprecation warning about the set-output command by upgrading the @actions/core dependency from v1.10.0 to v1.11.1, which automatically uses the new environment file approach for GitHub Actions outputs.

  • Upgraded @actions/core dependency to v1.11.1 to fix the deprecated set-output command warning

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@benbalter benbalter merged commit 0f3fadc into main Aug 15, 2025
4 checks passed
@benbalter benbalter deleted the copilot/fix-155 branch August 15, 2025 22: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.

Upgrade to Using Environment Files - set-output Deprecated

2 participants