abhisin98/Railway Deploy
Deploy a Railway service to a specified environment, with optional preview environment support for pull requests.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Aug 18, 2026
- License
- None
Pinned Snippet
uses: abhisin98/avivox-action-railway-deploy@24bf7c4146d790f992b1bcbb582e201c7bee15a9 # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| api-token | Railway API token for authentication. | yes | — |
| project-id | Railway project ID where the service is located. | yes | — |
| environment-id | Railway environment ID to deploy to (used when preview=false). | yes | — |
| service-id | Railway service ID to deploy. | yes | — |
| preview | Whether to deploy to a preview environment (true/false). If true, pr-number is required. | — | false |
| pr-number | Pull request number for preview deployments. Required if preview=true. | — | — |
| github-token | GitHub token or GitHub App token for API operations (PR comments). If empty, default token is used. | — | ${{ github.token }} |
| cleanup-preview | Whether to clean up the preview environment after deployment (true/false). If true, the preview environment will be deleted after deployment. | — | false |
Outputs
| name | description |
|---|---|
| url | The URL of the deployed service (preview or production). If preview=true, this will be the preview environment URL; otherwise, it will be the production environment URL. |