easingthemes / ssh-deploy

GitHub Action for deploying code via rsync over ssh. (with NodeJS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Environment variable forwarding

LiviruRMIT opened this issue · comments

Is there way to pass environment variable to the server?
I tried using a export command in SCRIPT_BEFORE & SCRIPT_AFTER but doesn't seems to be working.

Same issue!
Is there any progress?

A good news!
We can use github context in SCRIPT_BEFORE and SCRIPT_AFTER

eg:

SCRIPT_BEFORE: |
  echo ${{ github.repository }}
  echo ${{ github.sha }}
SCRIPT_AFTER: |
  echo ${{ github.repository }}
  echo ${{ github.sha }}

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.