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

Respect the activated environment (or new token with ability to reach all environment) #434

Open
sangdth opened this issue Jul 9, 2023 · 2 comments

Comments

@sangdth
Copy link

sangdth commented Jul 9, 2023

Currently I face a small issue when trying to create preview links for my app when open a PR. Read more in the Discord.

In short, despite I ran this in Github Actions:

railway environment myproject-pr-$PR_NUMBER

Then the following one still get ONLY production's variables if I use the production RAILWAY_TOKEN:

railway variables -s server --json

Please note that on my local machine, after activating the new environment, the railway variables returns CORRECT values of that environment. (I think it makes sense, because I logged in using my credentials locally, not environment's token.)

I would love to have a way so that railway variables can return correct values from activated environment on Github Actions as well.

@coffee-cup
Copy link
Contributor

Would a token that works for all environments work?

@sangdth
Copy link
Author

sangdth commented Jul 10, 2023

Thanks @coffee-cup, currently the API token (generated from user profile) can be used only for GraphQL. It would be great if it could work for all environments as well.

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