GitHub Actions でジョブを跨いだ成功/失敗分岐

jobs:
  job1:
    runs-on: ubuntu-latest
    steps:
      ...

  success:
    runs-on: ubuntu-latest
    needs: job1
    steps:
      ...

  fail:
    runs-on: ubuntu-latest
    needs: job1
    if: failure()
    steps:
      ...

参考