Action should not be using a deprecated `set-output` method
See original GitHub issueWen 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:
- Created a year ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll be pushing a new version of the action today!
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