From fa706cf2d7f138e9c3838ce2faba91a1cdb466ac Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sat, 30 Dec 2023 23:51:15 +0100 Subject: [PATCH] Optional SSH key --- .gitea/workflows/container.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml index de35eba..5cc41e3 100644 --- a/.gitea/workflows/container.yaml +++ b/.gitea/workflows/container.yaml @@ -26,10 +26,7 @@ on: required: true type: string PIPELINE_WORKER_SSH_KEY: - required: true - type: string - PIPELINE_WORKER_KNOWN_HOSTS: - required: true + required: false type: string jobs: @@ -57,6 +54,7 @@ jobs: - run: apt-get update - name: Setting up SSH + if: ${{ hashFiles('requirements_private.txt') != '' }} uses: https://github.com/shimataro/ssh-key-action@v2.5.1 with: key: ${{ secrets.PIPELINE_WORKER_SSH_KEY }}