Skip to content

Use Ruby 3.3.5

Use Ruby 3.3.5 #2

Workflow file for this run

name: Deploy to preview app
on:
workflow_dispatch:
pull_request:
types: [labeled, unlabeled]
env:
APP_NAME: wikimum-preview
LABEL: preview
jobs:
deploy:
name: Deploy
if: |

Check failure on line 15 in .github/workflows/deploy-preview.yml

View workflow run for this annotation

GitHub Actions / Deploy to preview app

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-preview.yml (Line: 15, Col: 9): Unrecognized named-value: 'env'. Located at position 64 within expression: github.event.action == 'labeled' && github.event.label.name == env.LABEL .github/workflows/deploy-preview.yml (Line: 33, Col: 9): Unrecognized named-value: 'env'. Located at position 66 within expression: github.event.action == 'unlabeled' && github.event.label.name == env.LABEL
github.event.action == 'labeled' &&
github.event.label.name == env.LABEL
concurrency: fly-deploy-preview
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- run: |
echo "RUBY_VERSION=$(cat .ruby-version)" >> $GITHUB_ENV
- uses: dentarg/fly@main
with:
app: ${{ env.APP_NAME }}
build-args: "RUBY_VERSION=${{ env.RUBY_VERSION }}"
fly-token: ${{ secrets.FLY_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
scale:
name: Scale down
if: |
github.event.action == 'unlabeled' &&
github.event.label.name == env.LABEL
concurrency: fly-deploy-preview
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: |
fly scale count 0 --yes --process-group web --app $APP_NAME
env:
FLY_API_TOKEN: "${{ secrets.FLY_API_TOKEN }}"