Skip to content

Commit

Permalink
feat: add action (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcScheib committed Sep 4, 2024
1 parent 98ebe15 commit 2b46e9d
Show file tree
Hide file tree
Showing 10 changed files with 27,306 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: ${{ env.author-name }}
GIT_AUTHOR_EMAIL: ${{ env.author-email }}
run: npx semantic-release
run: npx --yes -p @semantic-release/changelog -p @semantic-release/git semantic-release
36 changes: 36 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Hetzner Cloud API Action'
description: 'Interact with the Hetzner Cloud API from a GitHub'
inputs:
verbose:
description: 'Whether to output verbose logs'
required: false
api-token:
description: 'The Hetzner Cloud API token'
required: true
action:
description: 'The action to perform'
required: true
server-image:
description: 'The image to use for the server'
required: false
server-location:
description: 'The location to create the server in'
required: false
server-name:
description: 'The name of the server'
required: false
server-ipv4-id:
description: 'The ID of the IPv4 address to assign to the server'
required: false
server-type:
description: 'The type of the server'
required: false
ssh-key-names:
description: 'The names of the SSH keys to add to the server, separated by commas'
required: false
server-start-after-create:
description: 'Whether to start the server after creating it'
required: false
runs:
using: 'node20'
main: 'dist/index.js'
Loading

0 comments on commit 2b46e9d

Please sign in to comment.