commit 02188ad59ceb72b04e5b37ea7c442d05c462760d Author: Louis Seubert Date: Sat Jul 11 17:02:18 2026 +0200 feat: project setup diff --git a/README.md b/README.md new file mode 100644 index 0000000..2c680bd --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# collection diff --git a/checkout/action.yml b/checkout/action.yml new file mode 100644 index 0000000..b845604 --- /dev/null +++ b/checkout/action.yml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: EUPL-1.2 +name: "checkout" +description: "Checkout a git repository at a particular version" +author: "Louis Seubert" +inputs: + repository: + required: false + description: > + The path to the repository to checkout. Must be accessible with the + pipeline token or publicly. Can be either an HTTPS or SSH URL. + default: "${{ forgejo.server_url }}/${{ forgejo.repository }}.git" + ref: + required: false + description: > + The branch, tag or SHA to checkout. When checking out the repository that + triggered a workflow, this defaults to the reference or SHA for that + event. Otherwise, uses the default branch. + default: "${{ forgejo.ref || forgejo.sha }}" + path: + required: false + description: > + The directory to checkout the repository into. If the directory does not + exist, it will be created. + default: "${{ forgejo.workspace }}" + depth: + required: false + description: > + Create a shallow clone with a history truncated to the specified number of + commits. If the repository contains submodules, these are also cloned + shallowly. A value of `0` implies no shallow cloning. + default: "0" + submodule: + required: false + description: > + After the clone is created, initialize and clone submodules within based + on the provided configuration. + default: "false" + filter: + required: false + description: > + Use the partial clone feature and request that the server sends a subset + of reachable objects according to a given object filter. The default value + is `auto` to allow the server to decide. + default: "auto" +runs: + using: "docker" + image: "docker://code.geekeey.de/component/core:1.0.0" + args: [ "checkout" ] diff --git a/ssh-add-key/action.yml b/ssh-add-key/action.yml new file mode 100644 index 0000000..920b040 --- /dev/null +++ b/ssh-add-key/action.yml @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: EUPL-1.2 +name: "ssh-add-key" +description: "Configure an SSH private key and known hosts" +author: "Louis Seubert" +inputs: + key: + description: > + The SSH private key content to install. The key will be written to + ~/.ssh/ and added to the SSH agent via ssh-add. Use a secret to pass + the key value, e.g. ${{ secrets.SSH_PRIVATE_KEY }}. + required: true + path: + description: > + The directory to write the private key to. Defaults to ~/.ssh. + required: false + default: "~/.ssh" + filename: + description: > + The filename to use when writing the private key to ~/.ssh. This also + determines the names of the corresponding -pub and -pub.sig + files. Defaults to "id_rsa". + required: false + default: "id_rsa" +runs: + using: "docker" + image: "docker://code.geekeey.de/component/core:1.0.0" + args: ["ssh-add-key"]