cli icon indicating copy to clipboard operation
cli copied to clipboard

Cli Timeout in CI environment when setting variables.

Open plungarini opened this issue 5 months ago • 1 comments

I'm using railway cli to set a variable in a github action:

name: Version Management
on:
  push:
    branches: master
  pull_request:
    branches: master

jobs:
  update-version:
    runs-on: ubuntu-latest
    environment: Production

    steps:
      - name: Clone repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          fetch-tags: true
          ref: ${{ github.sha }}

      - name: Get version from tag
        run: |
          TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
          echo "VERSION=$TAG" >> $GITHUB_ENV
      - name: Install Railway CLI
        run: npm install -g @railway/cli

      - name: Update Railway env var
        env:
          RAILWAY_SERVICE_ID: ${{ secrets.RAILWAY_SERVICE_ID }}
          RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
          VERSION: ${{ env.VERSION }}
        run: |
          railway variables \
            --service "$RAILWAY_SERVICE_ID" \
            --set "VERSION=$VERSION"

I already talked about this in the Railway Help center and they suggested me to try to use the "--skip-deploys" flag, but it still doesn't work.

The cli times out after 30 seconds:

Image

Here's my conversation in Help Center: Railway Cli Not Working in Github Action

plungarini avatar Aug 08 '25 10:08 plungarini

Having the same issue, timeouts in CI as well as in a local terminal test. What's the status on this issue?

jakobzach avatar Oct 04 '25 11:10 jakobzach