Skip to content

Commit 0cc9658

Browse files
use vars for safe values
1 parent 9508900 commit 0cc9658

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ jobs:
5757
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
5858
ARGS: "-rlgoDzvc -i --delete"
5959
SOURCE: "dist/"
60-
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
61-
REMOTE_USER: ${{ secrets.REMOTE_USER }}
62-
TARGET: ${{ secrets.REMOTE_TARGET }}${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event_name == 'push' && 'main' || github.event.inputs.destination}}
60+
REMOTE_HOST: ${{ vars.REMOTE_HOST }}
61+
REMOTE_USER: ${{ vars.REMOTE_USER }}
62+
TARGET: ${{ vars.REMOTE_TARGET }}${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event_name == 'push' && 'main' || github.event.inputs.destination}}
6363
- name: update PR
6464
if: ${{ github.event_name == 'pull_request' }}
6565
uses: thollander/actions-comment-pull-request@v2

0 commit comments

Comments
 (0)