-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: unregister runner using its unique id #39
Conversation
ed1dec2
to
ea9229d
Compare
BREAKING CHANGE: runner name cannot be used anymore to remove it from GitHub platform. A runner can be removed directly, through the REST API, using its ID. This change has been made to avoid Slab server to fetch all registered runners before being able to filter by name and finally find ID of the runner to remove.
ea9229d
to
ab93d44
Compare
async function stop() { | ||
const stop_instance_response = await slab.terminateInstanceRequest( | ||
config.input.label | ||
config.input.runnerId | ||
) | ||
await slab.waitForInstance(stop_instance_response.task_id, 'stop') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's fully breaking, is that what we discussed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fully breaking but older version of the action can still be used. It's breaking from action point of view but Slab handle the backward compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may cause issues with dependabot if it's able to start instances but they don't get stopped, likely need to update everything ASAP on repos with dependabot
Yes you're right. I'll handle this update. |
BREAKING CHANGE: runner name cannot be used anymore to remove it from GitHub platform.
A runner can be removed directly, through the REST API, using its ID. This change has been made to avoid Slab server to fetch all registered runners before being able to filter by name and finally find ID of the runner to remove.