question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Action should not be using a deprecated `set-output` method

See original GitHub issue

Wen running the newest version of the action, there is a Warning stating the action is using a the deprecated set-output method.

Sending webhook request to ***/deploy-api
Warning: 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/
Received status code: 200

My config

    deploy-api:
        name: Redeploy API
        runs-on: ubuntu-latest
        needs: [build-and-push]
        steps:
            - name: Deploy docker container webhook
              uses: actions/setup-node@v3
              with:
                  node-version: "16"
            - name: Webhook call
              uses: joelwmale/webhook-action@master
              with:
                  url: ${{ secrets.DEPLOY_WEBHOOK_URL }}/deploy-api
                  headers: '{"secret": "${{ secrets.WEBHOOK_SECRET }}"}'

Source: https://github.com/jkulak/smartplaylist-backend/actions/runs/3347471589/jobs/5545500696#step:3:7

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joelwmalecommented, Nov 8, 2022

I’ll be pushing a new version of the action today!

0reactions
depoulocommented, Nov 10, 2022

But it didn’t fix the issue, probably due to "@actions/core": "^1.10.0" being set as a caret dependency. If you look in the dist folder, you’ll see that it still uses the old version:

https://github.com/joelwmale/webhook-action/blob/2c43ebbef8b9c5e5ea27cd65dfdeac58f90e7e29/dist/index.js#L334-L344

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the replacement for core.setOutput ? #1218 - GitHub
The documentation suggests this method used to pass variables between actions is deprecated. Is there a replacement coming for this behavior? If not...
Read more >
How to Fix the set-output GitHub Actions Deprecation Warning
If you have a GitHub Actions workflow that sets an output using echo ... The set-output command is deprecated and will be disabled...
Read more >
How to Patch the Deprecated set-output in GitHub Workflows ...
TL;DR: There is a new way for GitHub Container Actions, as well as workflow steps to produce outputs. This post explains how to...
Read more >
Deprecating save-state and set-output commands
Starting 1st June 2023 workflows using save-state or set-output commands via stdout will fail with an error. Patching your actions and workflows.
Read more >
How to get the current branch within Github Actions?
I added a separate step for extracting branch name from $GITHUB_REF and set it to the step output - name: Extract branch name...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found