action-gh-release icon indicating copy to clipboard operation
action-gh-release copied to clipboard

Update the set-output command (deprecation warning)

Open jo-tools opened this issue 1 year ago • 5 comments

What would you like to be added?

      - name: Create release
        uses: softprops/action-gh-release@v1

When using this Action in a Workflow, GitHub displays a warning:

The 'set-output' command is deprecated and will be disabled soon.

So the set-output command should be updated... so that no warnings of deprecations are being displayed.

Why is this needed?

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/

jo-tools avatar Oct 12 '22 19:10 jo-tools

After cleaning up some workflows for this very reason, this is the last one I needed to update, and I like using this action with the gitchangelog-action. So I tested both upgrade PRs on top of current master, and that (mostly) takes care of the (end-user) workflow deprecation warnings (yay!) however it still has a similar list of npm package deprecation/unmaintained/vulnerability warnings in the test log. Sadly I'm already out of time/bandwidth...

sarnold avatar Oct 31 '22 21:10 sarnold

One could consider abandoning this action and using GitHub CLI instead.

GitHub CLI is preinstalled on all GitHub-hosted runners. It's quite easy to manage releases with the GitHub CLI:

jo-tools avatar Nov 12 '22 22:11 jo-tools

@jo-tools Can you run the GitHub CLI from GitHub Actions? Would you have an example?

Vadorequest avatar Jan 10 '23 09:01 Vadorequest

@Vadorequest yes, click @jo-tools’ first link.

jpmckinney avatar Jan 10 '23 14:01 jpmckinney

Thanks, I've eventually migrated to using GH CLI as well.

Here is an example: https://github.com/UnlyEd/github-action-store-variable/blob/main/.github/workflows/auto-git-release-production.yml

Vadorequest avatar Jan 10 '23 17:01 Vadorequest