Repository navigation
Description
Describe the bug
I can't call github.rest.actions.reRunWorkflow. I get the following message when I call it.
TypeError: github.rest.actions.reRunWorkflow is not a function
To Reproduce
Just simply call github.rest.actions.reRunWorkflow.
Expected behavior
github.rest.actions.reRunWorkflow works as it should.
Additional context
I use the following code to examine what there are in github.rest.actions.
for (let i in github.rest.actions)
console.log(i);And I get the following output. (Logs here.)
Details
addSelectedRepoToOrgSecret
approveWorkflowRun
cancelWorkflowRun
createOrUpdateEnvironmentSecret
createOrUpdateOrgSecret
createOrUpdateRepoSecret
createRegistrationTokenForOrg
createRegistrationTokenForRepo
createRemoveTokenForOrg
createRemoveTokenForRepo
createWorkflowDispatch
deleteArtifact
deleteEnvironmentSecret
deleteOrgSecret
deleteRepoSecret
deleteSelfHostedRunnerFromOrg
deleteSelfHostedRunnerFromRepo
deleteWorkflowRun
deleteWorkflowRunLogs
disableSelectedRepositoryGithubActionsOrganization
disableWorkflow
downloadArtifact
downloadJobLogsForWorkflowRun
downloadWorkflowRunAttemptLogs
downloadWorkflowRunLogs
enableSelectedRepositoryGithubActionsOrganization
enableWorkflow
getAllowedActionsOrganization
getAllowedActionsRepository
getArtifact
getEnvironmentPublicKey
getEnvironmentSecret
getGithubActionsPermissionsOrganization
getGithubActionsPermissionsRepository
getJobForWorkflowRun
getOrgPublicKey
getOrgSecret
getPendingDeploymentsForRun
getRepoPermissions
getRepoPublicKey
getRepoSecret
getReviewsForRun
getSelfHostedRunnerForOrg
getSelfHostedRunnerForRepo
getWorkflow
getWorkflowRun
getWorkflowRunAttempt
getWorkflowRunUsage
getWorkflowUsage
listArtifactsForRepo
listEnvironmentSecrets
listJobsForWorkflowRun
listJobsForWorkflowRunAttempt
listOrgSecrets
listRepoSecrets
listRepoWorkflows
listRunnerApplicationsForOrg
listRunnerApplicationsForRepo
listSelectedReposForOrgSecret
listSelectedRepositoriesEnabledGithubActionsOrganization
listSelfHostedRunnersForOrg
listSelfHostedRunnersForRepo
listWorkflowRunArtifacts
listWorkflowRuns
listWorkflowRunsForRepo
removeSelectedRepoFromOrgSecret
reviewPendingDeploymentsForRun
setAllowedActionsOrganization
setAllowedActionsRepository
setGithubActionsPermissionsOrganization
setGithubActionsPermissionsRepository
setSelectedReposForOrgSecret
setSelectedRepositoriesEnabledGithubActionsOrganization
Activity
joshmgross commentedon Jun 21, 2022
We may need to update our version of Octokit.
In the meantime, you can use
github.requestdirectlyhttps://docs.github.com/en/rest/actions/workflow-runs#re-run-a-workflow
plazum commentedon Jun 21, 2022
Thanks. That's exactly what I'm doing now and in the past several months.
Wait, I just find that it's not your fault. There is no
octokit.rest.actions.reRunWorkflowin Octokit!I try to use Octokit as how its documentation says,
And there is still no
reRunWorkflowin it.And then I find this. octokit/rest.js#130
So it is https://octokit.github.io/rest.js/ that is outdated.