Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubicloud
steps:
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 23
node-version: 24

- name: Install node packages
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
runs-on: ubicloud
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Generate public ssh key
id: generate-key
Expand All @@ -21,7 +21,7 @@ jobs:

- name: Setup SSH access
id: ssh
uses: ubicloud/ssh-runner@v1
uses: ./
with:
public-ssh-key: "${{ steps.generate-key.outputs.public_key }}"
wait-minutes: 1
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 23.9.0
nodejs 24.14.0
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add the following step to your workflow as the first step:

```yaml
- name: Setup SSH access
uses: ubicloud/ssh-runner@v1
uses: ubicloud/ssh-runner@v2
with:
public-ssh-key: ${{ secrets.SSH_PUBLIC_KEY }}
wait-minutes: 30 # Optional, default is 10 minutes
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup SSH access
uses: ubicloud/ssh-runner@v1
uses: ubicloud/ssh-runner@v2
with:
public-ssh-key: ${{ secrets.SSH_PUBLIC_KEY }}
wait-minutes: 30
Expand All @@ -76,7 +76,7 @@ You can set up SSH access only for failed jobs.
```yaml
- name: Setup SSH access
if: ${{ failure() }}
uses: ubicloud/ssh-runner@v1
uses: ubicloud/ssh-runner@v2
with:
public-ssh-key: ${{ secrets.SSH_PUBLIC_KEY }}
wait-minutes: 30
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ outputs:
ip:
description: 'The username to use for SSH connection'
runs:
using: 'node20'
using: 'node24'
main: 'dist/main/index.js'
post: 'dist/post/index.js'
post-if: '!cancelled()'
Expand Down
6 changes: 3 additions & 3 deletions dist/main/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/main/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
6 changes: 3 additions & 3 deletions dist/post/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/post/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
68 changes: 28 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssh-runner",
"version": "1.0.0",
"version": "2.0.0",
"description": "Allows you to SSH into a managed Ubicloud runner during workflow execution for debugging purposes",
"scripts": {
"build:main": "ncc build -o dist/main --minify --no-cache src/main.js",
Expand All @@ -13,14 +13,15 @@
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "module",
"license": "MIT",
"bugs": {
"url": "https://github.com/ubicloud/ssh-runner/issues"
},
"homepage": "https://github.com/ubicloud/ssh-runner#readme",
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1"
"@actions/core": "^3.0.0",
"@actions/exec": "^3.0.0"
},
"devDependencies": {
"@vercel/ncc": "^0.38.3"
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const core = require('@actions/core');
const exec = require('@actions/exec');
import * as core from '@actions/core';
import * as exec from '@actions/exec';

async function run() {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/post.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const core = require('@actions/core');
import * as core from '@actions/core';

async function post() {
try {
Expand Down