Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable forwarding #181

Open
LiviruRMIT opened this issue Feb 29, 2024 · 2 comments
Open

Environment variable forwarding #181

LiviruRMIT opened this issue Feb 29, 2024 · 2 comments

Comments

@LiviruRMIT
Copy link

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.

@xunjianxiang
Copy link

xunjianxiang commented Mar 6, 2024

Same issue!
Is there any progress?

@xunjianxiang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants