ssh-deploy icon indicating copy to clipboard operation
ssh-deploy copied to clipboard

Environment variable forwarding

Open LiviruRMIT opened this issue 1 year ago • 2 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.

LiviruRMIT avatar Feb 29 '24 02:02 LiviruRMIT

Same issue! Is there any progress?

xunjianxiang avatar Mar 06 '24 04:03 xunjianxiang

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 }}

xunjianxiang avatar Mar 06 '24 09:03 xunjianxiang

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.

github-actions[bot] avatar Jun 05 '24 01:06 github-actions[bot]