name: Deploy to Fly

on:
  workflow_run:
    workflows: [CI]
    types: [completed]

jobs:
  deploy:
    if: |
      github.event.workflow_run.conclusion == 'success' &&
      github.event.workflow_run.head_branch == github.event.repository.default_branch
    concurrency: deploy
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - uses: dentarg/fly@v1
        with:
          fly-token: ${{ secrets.FLY_API_TOKEN }}
          github-token: ${{ secrets.GITHUB_TOKEN }}

name: Deploy to Fly

on:
  workflow_run:
    workflows: [CI]
    types: [completed]

jobs:
  deploy:
    if: |
      github.event.workflow_run.conclusion == 'success' &&
      github.event.workflow_run.head_branch == github.event.repository.default_branch
    concurrency: fly-deploy
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - uses: dentarg/fly@v1
        with:
          fly-token: ${{ secrets.FLY_API_TOKEN }}
          github-token: ${{ secrets.GITHUB_TOKEN }}

Deploy to Fly and Heroku in parallel
Deploy to Fly and Heroku in parallel
