From d76fae7ed1acd7c9517fd7dd4df2bc70e3ba344a Mon Sep 17 00:00:00 2001 From: Sergey Date: Sun, 29 Sep 2024 20:28:55 +0300 Subject: [PATCH] Update copy-to-practicum-machine.yml --- .../workflows/copy-to-practicum-machine.yml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/copy-to-practicum-machine.yml b/.github/workflows/copy-to-practicum-machine.yml index d4cac77..ca9da1f 100644 --- a/.github/workflows/copy-to-practicum-machine.yml +++ b/.github/workflows/copy-to-practicum-machine.yml @@ -34,14 +34,14 @@ jobs: source: "sergzach-test2.txt" target: "taski" # Run tmate only if the previous step is failure. - # - name: Setup tmate session - # if: ${{ failure() }} - # # Environ. variables from secrets for tmate (use env bash command). - # env: - # SECRETS_HOST: ${{ secrets.HOST }} - # SECRETS_USERNAME: ${{ secrets.USERNAME }} - # SECRETS_SSH_KEY: ${{ secrets.SSH_KEY }} - # SECRETS_PASSPHASE: ${{ secrets.SSH_PASSPHRASE }} - # SECRETS_SOURCE: "sergzach-test.txt" - # SECRETS_TARGET: "taski" - # uses: mxschmitt/action-tmate@v3 + - name: Setup tmate session + if: ${{ failure() }} + # Environ. variables from secrets for tmate (use env bash command). + env: + SECRETS_HOST: ${{ secrets.HOST }} + SECRETS_USERNAME: ${{ secrets.USERNAME }} + SECRETS_SSH_KEY: ${{ secrets.SSH_KEY }} + SECRETS_PASSPHASE: ${{ secrets.SSH_PASSPHRASE }} + SECRETS_SOURCE: "sergzach-test.txt" + SECRETS_TARGET: "taski" + uses: mxschmitt/action-tmate@v3