fix: fix release flow - for check

This commit is contained in:
Jun Kurihara 2023-10-12 15:44:30 +09:00
commit 731de5f64f
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23

View file

@ -9,11 +9,12 @@ on:
types: [closed] types: [closed]
branches: branches:
- main - main
push: # TODO: delete later
jobs: jobs:
on-success: on-success:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }} || ${{ github.event_name == 'push' }} || ${{ github.event_name == 'pull_request' }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -98,7 +99,7 @@ jobs:
on-failure: on-failure:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }} if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure' }}
steps: steps:
- run: echo 'The release triggering workflows failed' - run: echo 'The release triggering workflows failed'