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