a year ago
We're deploying a service from a GitHub workflow (on new PR) and want to connect the new service to the PR branch. Deployment and everything works, but the new service gets attached to develop branch from which it was copied.
Is there any way to switch the branch post deployment or at any point?
Currently we're doing:
railway link --project ${{ env.RAILWAY_PROJECT_NAME }} --environment develop
railway environment new ${{ github.head_ref }} --copy developand then
railway link --project ${{ env.RAILWAY_PROJECT_NAME }} --environment ${{ github.head_ref }}
railway up --detach --service ${{ env.RAILWAY_BACKEND_SERVICE_NAME }}github.head_ref will resolve to the PR branch name.
2 Replies
a year ago
Hey there! We've found the following might help you get unblocked faster:
- ๐งต I want to edit the deploy title with cli
- ๐งต Wait for CI skips deployments despite successful GitHub Actions completion
- ๐ Templates
If you find the answer from one of these, please let us know by solving the thread!
Status changed to Awaiting User Response Railway โข 11 months ago
a year ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway โข 11 months ago