Skip to content

Conversation

@neo-jesse
Copy link
Contributor

@neo-jesse neo-jesse commented Oct 20, 2025

GitHub Actions workflow shows deprecation warning:

Solution

  • Replaced @actions/core with custom implementations to avoid deprecated set-output command
  • Used proper Environment Files syntax (name=value) as recommended by GitHub
  • Removed @actions/core dependency completely

Changes

  • Modified action/index.ts to use custom getInput, info, debug, setFailed, and customSetOutput functions

  • Updated package.json to remove @actions/core dependency

  • Rebuilt action to generate clean JavaScript without deprecated commands

  • Result

  • ✅ No more deprecation warnings

  • ✅ All functionality preserved

  • ✅ Follows GitHub's official Environment Files documentation

  • ✅ Reduced bundle size (1114kB → 1088kB)

Fixes the set-output deprecation warning when building release images on stage-prod.

- Replace @actions/core with custom implementations to avoid deprecated set-output command
- Use custom getInput, info, debug, setFailed functions
- Use customSetOutput function that writes directly to
- Remove @actions/core dependency completely
- Rebuild action to generate clean JavaScript without deprecated commands

This eliminates the 'set-output command is deprecated' warning when building release images on stage-prod.
@neo-jesse neo-jesse changed the title Fix set-output deprecation warning in GitHub Actions fix(build errors): Fix set-output deprecation warning in GitHub Actions Oct 20, 2025
- Simplify customSetOutput to use the recommended syntax: name=value
- Remove complex delimiter approach in favor of simple key=value format
- Follow GitHub's official Environment Files documentation
- Maintain compatibility with  while using cleaner syntax
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

thanks!

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