GitHub deployment trigger doesn't fire for "success"
I'm working on a GitHub workflow that runs e2e tests against a preview deployment that is automatically created & updated by Railway.
I want to leverage the
deployment_status
GitHub workflow trigger and further narrow it down to the success
type. In other words, only trigger that workflow when Railway successfully deployed a new deployment.
The issue I have is that for some reason my workflow gets triggered twice with action: "created"
, once when the deployment starts and once when it finishes. The second one should be a action: "success"
.
Can anyone confirm that or is it a user error on my side?
I'll post a sample workflow yaml in the thread.4 Replies
Project ID:
9f09cbdf-5436-4eda-9997-dcc4b5391f40
9f09cbdf-5436-4eda-9997-dcc4b5391f40
Sample workflow file:
does this use the project webhooks?
No, these events are fired when Railway sets the PR status check for deployments. All I enabled was Railway PR environments.