GitHub action to cancel a run on StackSpot Runtime API.
Note: This action is supported on all runners operating systems (ubuntu
, macos
, windows
)
To get the account keys (CLIENT_ID
, CLIENT_KEY
and CLIENT_REALM
), please login using a ADMIN user on the StackSpot Portal, and generate new keys at https://stackspot.com/en/settings/access-token.
steps:
- uses: stack-spot/runtime-cancel-run-action@v1
with:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_KEY: ${{ secrets.CLIENT_KEY }}
CLIENT_REALM: ${{ secrets.CLIENT_REALM }}
RUN_ID: run_id
FORCE_CANCEL: true
Field | Mandatory | Default Value | Observation |
---|---|---|---|
CLIENT_ID | YES | N/A | StackSpot Client ID. |
CLIENT_KEY | YES | N/A | StackSpot Client KEY. |
CLIENT_REALM | YES | N/A | StackSpot Client Realm. |
RUN_ID | YES | N/A | Run Id generated by Runtime Manager Action. |
FORCE_CANCEL | YES | true | Forces the cancel in case Jobs/Workers will no longer respond Run Tasks. |