Skip to content

Bump rubocop from 1.67.0 to 1.68.0 #13

Bump rubocop from 1.67.0 to 1.68.0

Bump rubocop from 1.67.0 to 1.68.0 #13

Workflow file for this run

name: Deploy to preview app
on:
workflow_dispatch:
pull_request:
types: [labeled, unlabeled]
jobs:
deploy:
name: Deploy
if: |
github.event.action == 'labeled' &&
github.event.label.name == 'preview'
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: wikimum-preview
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 == 'preview'
concurrency: fly-deploy-preview
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: |
flyctl scale count 0 --yes --process-group web --app wikimum-preview
env:
FLY_API_TOKEN: "${{ secrets.FLY_API_TOKEN }}"