test env vars

This commit is contained in:
Dragan Filipovic 2022-12-30 15:36:34 +01:00
parent 25ffb03f81
commit 8073f2b34c
2 changed files with 10 additions and 1 deletions

View File

@ -57,7 +57,7 @@ jobs:
run: | run: |
npm ci npm ci
npm run build npm run build
node ./src/index.js node ./src/test.js
env: env:
SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
ARGS: "-rltgoDzvO" ARGS: "-rltgoDzvO"

9
src/test.js Normal file
View File

@ -0,0 +1,9 @@
const {
REMOTE_HOST, REMOTE_USER,
REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME,
SOURCE, TARGET, ARGS, EXCLUDE,
GITHUB_WORKSPACE
} = require('./inputs');
// eslint-disable-next-line max-len
console.log(REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, EXCLUDE, GITHUB_WORKSPACE);