Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
cd73b32
Use the paginate API call to get all runners instead of just the firs…
davinchia Jun 28, 2021
0692a84
Update dist
Jun 28, 2021
a34a946
Bump glob-parent from 5.1.1 to 5.1.2 (#47)
dependabot[bot] Jun 28, 2021
8911518
Fix PR automation, update the action version in the example (#54)
machulav Jun 29, 2021
17e4c97
Allow user to pass in a custom actions-runner directory (#56)
jpalomaki Aug 27, 2021
3740c01
Update dist
Aug 27, 2021
56212fa
Update the runner version to the latest one (#67)
machulav Aug 29, 2021
502fc5c
Update dist
Aug 29, 2021
7f0f481
fix: `invalid culture identifier` (#88)
skyzh Jan 13, 2022
d0d7c1c
Version updates (#92)
machulav Jan 13, 2022
c34ba2d
Update dist
Jan 13, 2022
393abff
Add link for donation to help Ukraine protect itself from russian occ…
machulav Mar 3, 2022
a046b23
Update donation URL
machulav Mar 3, 2022
6363d41
Update wordings
machulav Mar 4, 2022
31679f9
Bump @actions/core from 1.6.0 to 1.9.1 (#109)
dependabot[bot] Sep 22, 2022
b6b3b2e
Update dist
Sep 22, 2022
6b4d495
Bump node-fetch from 2.6.6 to 2.6.7 (#105)
dependabot[bot] Sep 22, 2022
c0cf4b4
Update dist
Sep 22, 2022
4e0303d
Fix deprecation warnings (#123)
machulav Nov 9, 2022
1def93c
Add required package to the documentation
machulav Apr 11, 2023
2c4d1dc
Add 'pre-runner-script' option (#154)
tonyhutter Jul 7, 2023
b1c4d9a
Upgrade NodeJS from 16 to 20 (#182)
absalukaskosina Feb 19, 2024
a6ce438
Update runner version to v2.286.0 (#184)
machulav Feb 19, 2024
89dfcf3
Bump xml2js and aws-sdk (#145)
dependabot[bot] Feb 19, 2024
186f574
Update build CI to trigger it manually (#185)
machulav Feb 19, 2024
e3cfd25
Fix "package" CI (temporary quick fix) (#186)
machulav Feb 19, 2024
0c7a6be
Update dist
Feb 19, 2024
5749b9b
Update runner version to v2.313.0 (#187)
machulav Feb 19, 2024
fcfb31a
Update dist
Feb 19, 2024
07270f3
Update README.md
machulav Oct 30, 2024
335760f
Upgrade to AWS SDK 3 and NodeJS20 (#192)
kosinal Oct 30, 2024
1827d6c
Update dist
Oct 30, 2024
6a96fd4
Update README.md
Preen Oct 30, 2024
28fbe1c
feat: support for using spot instances (#210)
tverghis Jan 22, 2025
dcd20a8
Document `market-type` (#211)
tverghis Jan 23, 2025
e9632d6
Merge branch 'main' of github.com:machulav/ec2-github-runner
johnsonrw82 Jan 31, 2025
d3f08ea
Add dist/index.js
johnsonrw82 Jan 31, 2025
5ef275f
new dist
johnsonrw82 Jan 31, 2025
3d75159
Add keep-on-stop option
johnsonrw82 Jan 31, 2025
1c9150c
dist
johnsonrw82 Jan 31, 2025
24b9694
Add to yml
johnsonrw82 Jan 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
extends:
- eslint:recommended
parserOptions:
ecmaVersion: 2018
ecmaVersion: 2020
sourceType: module
rules:
no-use-before-define: error
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ jobs:
name: Package distribution files
runs-on: ubuntu-latest
steps:
- id: get-branch
name: Get branch name
run: |
BRANCH=${{ github.ref }}
BRANCH=${BRANCH#"refs/heads/"}
echo "::set-output name=branch-name::${BRANCH}"
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ steps.get-branch.outputs.branch-name }}
ref: main

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install packages
run: npm ci

- name: Run linter
run: npm run lint

- name: Package
run: npm run package
env:
NODE_OPTIONS: --openssl-legacy-provider

- name: Commit
run: |
git config --global user.name "GitHub Actions"
git add dist/
git commit -m "Update dist" || echo "No changes to commit"
git push origin ${{ steps.get-branch.outputs.branch-name }}
git push origin main
47 changes: 29 additions & 18 deletions README.md

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inputs:
required: false
ec2-instance-type:
description: >-
EC2 Instance Type.
EC2 Instance Type.
This input is required if you use the 'start' mode.
required: false
ec2-instance-count:
Expand All @@ -42,7 +42,7 @@ inputs:
required: false
security-group-id:
description: >-
EC2 Security Group Id.
EC2 Security Group Id.
The security group should belong to the same VPC as the specified subnet.
The runners don't require any inbound traffic. However, outbound traffic should be allowed.
This input is required if you use the 'start' mode.
Expand Down Expand Up @@ -82,6 +82,16 @@ inputs:
description: >-
Specifies bash commands to run before the runner starts. It's useful for installing dependencies with apt-get, yum, dnf, etc.
required: false
market-type:
description: >-
Specifies the market (purchasing) option for the instance:
- 'spot' - Use a spot instance
required: false
keep-runner-on-stop:
description: >-
If true, keep the runner alive (running) on stop, but still de-register it from GitHub. Useful for debugging failed jobs. Default false.
required: false
default: "false"

outputs:
label:
Expand All @@ -96,5 +106,5 @@ outputs:
EC2 Instance Ids of the created runners.
The ids are used to terminate the EC2 instances when the runners are not needed anymore.
runs:
using: node16
using: node20
main: ./dist/index.js
Loading