dispatch-action icon indicating copy to clipboard operation
dispatch-action copied to clipboard

Deprecation warnings for node 12

Open kevinpapst opened this issue 2 years ago • 4 comments

Hi @mvasigh,

thanks for your work!

Using your action I get a warning nowadays in every run:

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: mvasigh/[email protected]

An example run is here: https://github.com/kevinpapst/kimai2/actions/runs/3541080089

I guess that is related to this line: https://github.com/mvasigh/dispatch-action/blob/main/action.yml#L26

Do you still maintain this action?

kevinpapst avatar Nov 28 '22 17:11 kevinpapst

Hi @kevinpapst, thank you for the heads up!

I no longer actively maintain this action. I think these days there are likely other options on the marketplace that perform the same function (sending repository dispatch events), I'd recommend trying out one of those.

mvasigh avatar Nov 28 '22 17:11 mvasigh

Thanks for your feedback, I'll go and have a look and report back ... for the next user stumbling upon that issue.

kevinpapst avatar Nov 28 '22 17:11 kevinpapst

If useful, this action seems like a good actively maintained alternative.

mvasigh avatar Nov 28 '22 17:11 mvasigh

Yep 👍 Seems the workflow diff is very small as well. From:

    steps:
      - name: Emit repository_dispatch
        uses: mvasigh/[email protected]
        with:
          token: ${{ secrets.ACCESS_TOKEN }}
          repo: target
          owner: username
          event_type: my_event

to

    steps:
      - name: Emit repository_dispatch
        uses: peter-evans/repository-dispatch@v2
        with:
          token: ${{ secrets.ACCESS_TOKEN }}
          repository: username/target
          event_type: my_event

Thanks for your action, which I used for quite a while.

You can close the issue if you like or keep it open for the next user 😄

kevinpapst avatar Nov 28 '22 17:11 kevinpapst