Action should not be using a deprecated set-output method #12

Closed
opened 2026-03-29 17:50:07 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @jkulak on GitHub (Oct 28, 2022).

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

Originally created by @jkulak on GitHub (Oct 28, 2022). 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](https://github.com/jkulak/smartplaylist-backend/actions/runs/3347471589/jobs/5545500696#step:3:7)
Author
Owner

@natlibfi-jonollil commented on GitHub (Oct 31, 2022):

Same warning message

Action yaml:

openshift-webhook:
    name: OpenShift webhook for image builder
    needs: [build-node-versions, njsscan]
    runs-on: ubuntu-latest

    steps:
      - uses: joelwmale/webhook-action@master
        with:
          url: ${{ secrets.WEBHOOK_URL }}
          body: '{"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}"}'

Bit simpler webhook trigger for OpenShift image build

@natlibfi-jonollil commented on GitHub (Oct 31, 2022): Same warning message Action yaml: ``` yaml openshift-webhook: name: OpenShift webhook for image builder needs: [build-node-versions, njsscan] runs-on: ubuntu-latest steps: - uses: joelwmale/webhook-action@master with: url: ${{ secrets.WEBHOOK_URL }} body: '{"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}"}' ``` Bit simpler webhook trigger for OpenShift image build
Author
Owner

@devenes commented on GitHub (Nov 8, 2022):

I guess it happens because of the checkout version in the package json file.

As far as I can see the develop branch updated with bot to the latest version. Try to use this branch:

 - uses: joelwmale/webhook-action@develop
@devenes commented on GitHub (Nov 8, 2022): I guess it happens because of the checkout version in the package json file. As far as I can see the develop branch updated with bot to the latest version. Try to use this branch: ``` - uses: joelwmale/webhook-action@develop ```
Author
Owner

@joelwmale commented on GitHub (Nov 8, 2022):

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

@joelwmale commented on GitHub (Nov 8, 2022): I'll be pushing a new version of the action today!
Author
Owner

@devenes commented on GitHub (Nov 8, 2022):

@joelwmale it's a great news! 🥳

@devenes commented on GitHub (Nov 8, 2022): @joelwmale it's a great news! 🥳
Author
Owner

@depoulo commented on GitHub (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:

2c43ebbef8/dist/index.js (L334-L344)

@depoulo commented on GitHub (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](https://github.com/joelwmale/webhook-action/blob/2.2.0/dist/index.js#L334-L344), you'll see that it still uses the old version: https://github.com/joelwmale/webhook-action/blob/2c43ebbef8b9c5e5ea27cd65dfdeac58f90e7e29/dist/index.js#L334-L344
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/webhook-action#12