Skip to content

Conversation

@susumutomita
Copy link
Contributor

Replace deprecated set-output command with GITHUB_OUTPUT

This pull request updates the GitHub Actions workflow configuration file .github/workflows/test.yml to replace the deprecated set-output command with the recommended GITHUB_OUTPUT environment file approach.

Changes

The change updates the way the yarn cache directory path is set in the workflow:

  • .github/workflows/test.yml:
    • Before: echo "::set-output name=dir::$(yarn cache dir)"
    • After: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

Motivation

GitHub has announced the deprecation of the set-output workflow command. This PR updates our workflow to use the new recommended approach using the GITHUB_OUTPUT environment file, which will ensure our CI/CD pipeline continues to work reliably after the deprecation takes effect.

Technical Details

The GITHUB_OUTPUT environment file is the new recommended way to set outputs in GitHub Actions. This approach:

  • Is more secure and reliable
  • Follows current GitHub Actions best practices
  • Eliminates deprecation warnings in our workflow logs

References

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.

set-output command is deprecated

1 participant