From 8b826418ac6aff07b294a29d126c8799d991cf9d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Oct 2021 15:51:19 +0300 Subject: workflows/run: use action to set up ssh-agent --- .github/workflows/run.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to '.github') diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index d1a5348..55ba662 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -24,12 +24,9 @@ jobs: allowed_ips: '${{ secrets.ALLOWED_IPS }}' private_key: '${{ secrets.WG_PRIVATE_KEY }}' preshared_key: '${{ secrets.WG_PRESHARED_KEY }}' - - name: Set SSH key - run: | - touch .ansible-key - chmod 0600 .ansible-key - cat <<'EOF' > .ansible-key - ${{ secrets.SSH_KEY }} - EOF + - name: webfactory/ssh-agent + uses: webfactory/ssh-agent@v0.5.3 + with: + ssh-private-key: '${{ secrets.SSH_KEY }}' - name: Run Ansible play run: make run limit='${{ github.event.inputs.hosts }}' -- cgit v1.2.3