commit 715cffde38d8f148f7d29bae23d5708e46932d84 Author: Stephan Linkel Date: Fri Jul 4 18:29:18 2025 +0200 first try diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..6fb25f0 --- /dev/null +++ b/action.yaml @@ -0,0 +1,26 @@ +name: 'Setup AGE & SOPS' +description: 'Installs SOPS and AGE binaries' +runs: + using: 'composite' + steps: + - name: download + shell: bash + id: download + run: | + if ! [ -x "$(command -v curl)" ]; then + echo "I need curl to operate" + exit 1 + fi + mkdir -p "$HOME/.bin" + if ! [ -x "$(command -v sops)" ]; then + curl https://github.com/getsops/sops/releases/download/v3.10.2/sops-v3.10.2.linux.amd64 -o "$HOME/.bin/sops" + else + echo "sops already present" + fi + if ! [ -x "$(command -v age)" ]; then + curl -L https://github.com/FiloSottile/age/releases/download/v1.2.1/age-v1.2.1-linux-amd64.tar.gz -o - | tar -xzO age/age > "$HOME/.bin/age" + else + echo "age already present" + fi + $HOME + echo "PATH=$HOME/.bin:$PATH" >> $GITHUB_ENV