Skip to content

Commit becff96

Browse files
committed
use RAILWAY_API_TOKEN for railway CLI auth
1 parent 489a8bd commit becff96

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/actions-image.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,13 @@ jobs:
101101
echo "✓ Pinned service image to $IMAGE."
102102
103103
- name: Trigger Railway redeploy
104-
if: success() && env.RAILWAY_TOKEN != ''
104+
if: success() && env.RAILWAY_API_TOKEN != ''
105105
env:
106-
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
106+
# 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 }}
107111
RAILWAY_PROJECT_ID: ${{ secrets.RAILWAY_PROJECT_ID }}
108112
RAILWAY_SERVICE_ID: ${{ secrets.RAILWAY_SERVICE_ID }}
109113
run: |

0 commit comments

Comments
 (0)