Skip to content

Commit 37feb99

Browse files
MerylWangdavinchiaGitHub Actionsdependabot[bot]machulav
authored
OPS-2863 Update node version to 16 (#3)
* Use the paginate API call to get all runners instead of just the first page. (machulav#51) * Update dist * Bump glob-parent from 5.1.1 to 5.1.2 (machulav#47) Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. - [Release notes](https://github.com/gulpjs/glob-parent/releases) - [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md) - [Commits](gulpjs/glob-parent@v5.1.1...v5.1.2) --- updated-dependencies: - dependency-name: glob-parent dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix PR automation, update the action version in the example (machulav#54) * Update tag in the example * Remove package from the PR automations * Allow user to pass in a custom actions-runner directory (machulav#56) * Allow user to pass in a custom actions-runner directory which contains pre-installed runner software and scripts * Add comment * Fix input refs * Fix linter error * Update dist * Update the runner version to the latest one (machulav#67) * Update dist * fix: `invalid culture identifier` (machulav#88) * remove `DOTNET_SYSTEM_GLOBALIZATION_INVARIANT` * build index.js Signed-off-by: Alex Chi <[email protected]> * Version updates (machulav#92) * Update runner version * Update package-lock.json * Update dist * Add link for donation to help Ukraine protect itself from russian occupants * Update donation URL * Update wordings * Bump @actions/core from 1.6.0 to 1.9.1 (machulav#109) Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.9.1. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dist * Bump node-fetch from 2.6.6 to 2.6.7 (machulav#105) Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Commits](node-fetch/node-fetch@v2.6.6...v2.6.7) --- updated-dependencies: - dependency-name: node-fetch dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dist * bump to node16 in action.yml * lint error * update dist file * Revert "update dist file" This reverts commit fa73d35. * use buildUserDataScript and remove trailing comma Signed-off-by: Alex Chi <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Davin Chia <[email protected]> Co-authored-by: GitHub Actions <runner@fv-az93-126.zwmoqlwq51iuvls2zdlc0jzybe.xx.internal.cloudapp.net> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Volodymyr Machula <[email protected]> Co-authored-by: Jukka Palomäki <[email protected]> Co-authored-by: GitHub Actions <runner@fv-az90-268.oknmvzgco44exlvyi5fejcivhg.gx.internal.cloudapp.net> Co-authored-by: Alex Chi <[email protected]> Co-authored-by: GitHub Actions <runner@fv-az238-896.lrtv1j1tcsgurjp4mtmc3vvjre.gx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@fv-az335-98.st3fsr2bvbpu5iwsufzt3hrohh.gx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@fv-az502-646.yzlryxntam3u3auahceqrxiktg.dx.internal.cloudapp.net>
1 parent 3b2d359 commit 37feb99

File tree

9 files changed

+47856
-39581
lines changed

9 files changed

+47856
-39581
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,3 @@ jobs:
1919
run: npm install
2020
- name: Run linter
2121
run: npm run lint
22-
package:
23-
name: Package distribution files
24-
runs-on: ubuntu-latest
25-
needs:
26-
- lint-code
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v2
30-
with:
31-
ref: ${{ github.head_ref }}
32-
- name: Cache dependencies
33-
uses: actions/cache@v2
34-
with:
35-
path: '**/node_modules'
36-
key: ec2-github-runner-${{ hashFiles('**/package-lock.json') }}
37-
- name: Install packages
38-
run: npm install
39-
- name: Package
40-
run: npm run package
41-
- name: Commit
42-
run: |
43-
git config --global user.name "GitHub Actions"
44-
git add dist/
45-
git commit -m "Update dist" || echo "No changes to commit"
46-
git push origin ${{ github.head_ref }}

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# On-demand self-hosted AWS EC2 runner for GitHub Actions
22

3+
⚠️ If you like the project, please consider [supporting Ukraine](https://bit.ly/3KeY7dc) in a [war](https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine) against russian occupants. Any help would be much appreciated!
4+
5+
[<img src="https://user-images.githubusercontent.com/2857712/156607570-8c9fd15b-8b44-41b3-bec3-312267af324f.png" width="500">](https://supportukrainenow.org)
6+
7+
(image by [Nina Dzyvulska](https://www.behance.net/ninadz))
8+
9+
---
10+
311
[![awesome-runners](https://img.shields.io/badge/listed%20on-awesome--runners-blue.svg)](https://github.com/jonico/awesome-runners)
412

513
Start your EC2 [self-hosted runner](https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners) right before you need it.
@@ -193,6 +201,7 @@ Now you're ready to go!
193201
| `ec2-instance-id` | Required if you use the `stop` mode. | EC2 Instance Id of the created runner. <br><br> The id is provided by the output of the action in the `start` mode. <br><br> The id is used to terminate the EC2 instance when the runner is not needed anymore. |
194202
| `iam-role-name` | Optional. Used only with the `start` mode. | IAM role name to attach to the created EC2 runner. <br><br> This allows the runner to have permissions to run additional actions within the AWS account, without having to manage additional GitHub secrets and AWS users. <br><br> Setting this requires additional AWS permissions for the role launching the instance (see above). |
195203
| `aws-resource-tags` | Optional. Used only with the `start` mode. | Specifies tags to add to the EC2 instance and any attached storage. <br><br> This field is a stringified JSON array of tag objects, each containing a `Key` and `Value` field (see example below). <br><br> Setting this requires additional AWS permissions for the role launching the instance (see above). |
204+
| `runner-home-dir` | Optional. Used only with the `start` mode. | Specifies a directory where pre-installed actions-runner software and scripts are located.<br><br> |
196205

197206
### Environment variables
198207

@@ -235,7 +244,7 @@ jobs:
235244
aws-region: ${{ secrets.AWS_REGION }}
236245
- name: Start EC2 runner
237246
id: start-ec2-runner
238-
uses: machulav/ec2-github-runner@v2.2.0
247+
uses: machulav/ec2-github-runner@v2
239248
with:
240249
mode: start
241250
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
@@ -271,7 +280,7 @@ jobs:
271280
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
272281
aws-region: ${{ secrets.AWS_REGION }}
273282
- name: Stop EC2 runner
274-
uses: machulav/ec2-github-runner@v2.2.0
283+
uses: machulav/ec2-github-runner@v2
275284
with:
276285
mode: stop
277286
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ inputs:
6666
for example: '[{"Key": "TagKey1", "Value": "TagValue1"}, {"Key": "TagKey2", "Value": "TagValue2"}]'
6767
required: false
6868
default: '[]'
69+
runner-home-dir:
70+
description: >-
71+
Directory that contains actions-runner software and scripts. E.g. /home/runner/actions-runner.
72+
required: false
6973
outputs:
7074
label:
7175
description: >-
@@ -78,5 +82,5 @@ outputs:
7882
EC2 Instance Id of the created runner.
7983
The id is used to terminate the EC2 instance when the runner is not needed anymore.
8084
runs:
81-
using: node12
85+
using: node16
8286
main: ./dist/index.js

0 commit comments

Comments
 (0)