8 months ago
I am trying to use your template/example to run a GitHub action after a successful deployment (https://docs.railway.com/tutorials/github-actions-post-deploy) and I am running into issues. The action never runs and just says 'skipped'. This is the header of my Action with the relevant details:
```yaml
name: Publish Client to NPM
on:
deployment_status:
states: [success]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event.deployment_status.state == 'success' && github.event.deployment.environment == 'production' && github.event.deployment.payload.serviceId == 'MY_SERVICE_ID'
```
As soon as railway starts to deploy the commit, the action just says 'Skipped'. Am I missing something?
1 Replies
8 months ago
Hey there! We've found the following might help you get unblocked faster:
- 📚 GitHub Actions Post-Deploy
- 📚 GitHub Actions PR Environment
- 🧵 Wait for CI skips deployments despite successful GitHub Actions completion
If you find the answer from one of these, please let us know by solving the thread!
Status changed to Solved ethndotsh • 8 months ago