Environment and Authentication Issues with Railway CLI on GitHub Actions
ProjectID: b57cbd01-a5dc-49bc-a75f-a5574bc644c7
I'm having trouble using the Railway CLI in GitHub Actions. Here are the specific issues:
Specified Environment Requirement: In non-interactive mode on GitHub Actions, I receive the error Environment must be provided when not running in a terminal. How can I specify the environment correctly in this context?
Authorization Issues and Non-Interactive Login: When trying to log in with railway login, I get Unauthorized. Please login with 'railway login' and Cannot login in non-interactive mode. How do I authenticate in non-interactive mode on GitHub Actions?
These issues are blocking Railway's integration into our CI/CD pipeline. Your help would be greatly appreciated.
Additional Information :
Railway CLI version used: 3.0.22
GitHub Actions workflow using Node.js v18 and the Railway CLI
Context of use: use in GitHub Actions with RAILWAY_TOKEN in Railways settings and Github secrets.
Thank you for your help.
2 Replies
Project ID:
b57cbd01-a5dc-49bc-a75f-a5574bc644c7
please read this guide https://blog.railway.app/p/github-actions