-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
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:
Here's my conversation in Help Center: Railway Cli Not Working in Github Action
Metadata
Metadata
Assignees
Labels
No labels