Skip to content

Deprecate される予定の set-output を探し、対応する。 #76

@waviaei

Description

@waviaei

概要

利用しているプロジェクトで下記エラーがあった。

The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

しかし、そのプロジェクトでは set-output を利用していなかった。
Copilot からは reusable workflow で利用している可能性の指摘があった。下記2つ。

  • tarosky/workflows/.github/workflows/backlog.yml@main
  • tarosky/workflows/.github/workflows/php-short-open-tag.yml@main

詳細

指摘された2つの reusbale workflow を確認したが、該当行はなかった。
この deprecation のGH側の投稿を読むと:

Action authors who are using the toolkit should update the @actions/core package to v1.10.0 or greater to get the updated saveState and setOutput functions.

とあるので、上記 workflow で利用している Action の中で使われている可能性もある。

期待される結果

set-output の deprecation notice がでないようにしつつ、動作に変更がないようにする。

影響範囲

Workflow を利用している他のレポジトリでも同様の注意がでている可能性がある。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions