Skip to content

Commit

Permalink
testing actions
Browse files Browse the repository at this point in the history
  • Loading branch information
patoroco committed Oct 14, 2023
1 parent b2e5f06 commit 372b4c9
Show file tree
Hide file tree
Showing 5 changed files with 25,983 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
uses: actions/checkout@v4
- name: Use the NodeJS version configured on the .nvmrc
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version-file: '.nvmrc'

- run: npm ci
- run: npm test
Expand Down
19 changes: 10 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: "DigitalOcean Doorkeeper"
author: "Jorge Maroto (@patoroco)"
description: "Open or close a specific port in your DigitalOcean firewall."
runs:
using: "node20"
main: "dist/index.js"

inputs:
# Input parameters allow you to specify data that the action expects to use during
# runtime. GitHub stores input parameters as environment variables.
# Input ids with uppercase letters are converted to lowercase during runtime.

digitaloceanToken:
description: "Digital Ocean token"
required: true
Expand All @@ -16,23 +24,16 @@ inputs:

protocol:
description: "Protocol used by the service to update"
required: true
default: "tcp"

IP:
description: "IP that will be added / removed. If it's not set, doorkeeper uses the local ip."
required: false

port:
description: "Port used by the service to update"
required: true
default: 22
default: "22"

dryRun:
description: "Specify true if you just want to check the action without apply it."
required: true
default: false
default: "true"

runs:
using: "node20"
main: "dist/index.js"
Loading

0 comments on commit 372b4c9

Please sign in to comment.