Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions deprecations #37

Closed
spaze opened this issue Oct 15, 2022 · 2 comments · Fixed by #39
Closed

GitHub Actions deprecations #37

spaze opened this issue Oct 15, 2022 · 2 comments · Fixed by #39
Assignees

Comments

@spaze
Copy link
Owner

spaze commented Oct 15, 2022

GitHub is deprecating and subsequently removing some Actions functionality I use, see for example these workflow run annotations.

  1. "Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16" ("We plan to migrate all actions to run on Node16 by Summer 2023.")
    Should update these actions:

    • actions/checkout (to 3.0+)
    • actions/cache (to 3.0+)
    • actions/upload-artifact (to 3.1.1+)
  2. "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/" (Resolved in actions/upload-artifact 3.1.1, updating to that or newer version will remove the warnings)

  3. "The save-state 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/" (This is resolved in actions/cache 3.0.11, updating as per 1. will remove the annotation warnings)

@spaze spaze self-assigned this Oct 15, 2022
@spaze
Copy link
Owner Author

spaze commented Oct 22, 2022

An inspiration for removing set-output maybe shivammathur/setup-php@0575a32

@spaze spaze closed this as completed in #39 Oct 22, 2022
spaze added a commit that referenced this issue Oct 22, 2022
1. Upgrade to `@v3` actions to use Node.js 16 and remove deprecation
warnings about Node.js 12, see
[docs](https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/).
2. Replace `::set-output` in `phpstan` and `phpcs` jobs with environment
file, see
[docs](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/).

Fix #37
@spaze
Copy link
Owner Author

spaze commented Oct 22, 2022

Some actions still throw deprecation warnings, created #40 to upgrade those too.

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 a pull request may close this issue.

1 participant