We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489a8bd commit becff96Copy full SHA for becff96
1 file changed
.github/workflows/actions-image.yml
@@ -101,9 +101,13 @@ jobs:
101
echo "✓ Pinned service image to $IMAGE."
102
103
- name: Trigger Railway redeploy
104
- if: success() && env.RAILWAY_TOKEN != ''
+ if: success() && env.RAILWAY_API_TOKEN != ''
105
env:
106
- RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
+ # CLI parses the env var name to decide token type:
107
+ # RAILWAY_TOKEN → project token, RAILWAY_API_TOKEN → personal/team.
108
+ # The GitHub secret stays named RAILWAY_TOKEN; we just bind it under
109
+ # the API-token name so the CLI accepts our personal access token.
110
+ RAILWAY_API_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
111
RAILWAY_PROJECT_ID: ${{ secrets.RAILWAY_PROJECT_ID }}
112
RAILWAY_SERVICE_ID: ${{ secrets.RAILWAY_SERVICE_ID }}
113
run: |
0 commit comments