bogdankharchenko/Railway PR Preview
Automatically create and manage Railway preview environments for PRs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| railway_token | Railway API token (Account token recommended) | no | — |
| source_environment_id | Environment ID to clone from (typically production) | no | — |
| github_token | GitHub token for posting comments and status checks | no | ${{ github.token }} |
| environment_name_prefix | Prefix for environment names | no | pr- |
| comment_on_pr | Whether to comment on the PR with environment info | no | true |
| deploy_on_create | Whether to trigger deployment after creating environment | no | true |
| wait_for_urls | Whether to wait for deployment URLs before updating comment | no | true |
| url_wait_timeout | Max time to wait for URLs in seconds | no | 120 |
| is_ephemeral | Whether to create the environment as ephemeral (temporary preview). Note: Railway has built-in PR environment support which is recommended for true ephemeral environments. | no | false |
Outputs
| name | description |
|---|---|
| environment_id | ID of the created/managed environment |
| environment_name | Name of the created/managed environment |
| deployment_url | URL of the deployed environment (if available) |