We have a workflow step like this:
- name: Call validation workflow
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: TOKEN
script: |
await github.rest.actions.createWorkflowDispatch({
owner: OWNER,
repo: REPO,
workflow_id: WORKFLOW_ID,
ref: 'master'
});
When running it, we get the following warning in the log:
[@octokit/request] "POST https://api.github.com/repos/OWNER/REPO/actions/workflows/WORKFLOW_ID/dispatches" is deprecated. It is scheduled to be removed on Fri, 10 Mar 2028 00:00:00 GMT. See https://docs.github.com/en/rest/about-the-rest-api/api-versions
Is there anything we could update to use the new API version?
We have a workflow step like this:
When running it, we get the following warning in the log:
Is there anything we could update to use the new API version?