feat: initial commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Runner Starter' | |
description: 'Turn on/off a self-hosted runner' | |
inputs: | |
instance_id: | |
description: 'ID of the EC2 instance to start OR the name of the scaling group to scale down' | |
required: true | |
action: | |
description: 'Define if I want to start or stop the runner' | |
required: true | |
aws_default_region: | |
description: 'AWS region to use' | |
required: true | |
runs: | |
using: "composite" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Start/Stop Runner Instance | |
shell: bash | |
run: | | |
${GITHUB_ACTION_PATH}/instance_start_stop.bash --instance-id=${{ inputs.instance_id }} --action=${{ inputs.action }} |