1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Only notify about successful deploy if successful (#46051)

This commit is contained in:
Peter Bengtsson
2023-11-13 12:19:20 -05:00
committed by GitHub
parent 536418954f
commit e8a4f0d9af
2 changed files with 12 additions and 2 deletions

View File

@@ -18,7 +18,12 @@ permissions:
jobs:
find-pr-and-post-comment:
if: ${{ github.repository == 'github/docs-internal' }}
if: >-
${{
github.repository == 'github/docs-internal' &&
(github.event_name != 'workflow_run' ||
github.event.workflow_run.conclusion == 'success')
}}
runs-on: ubuntu-latest
steps:
- name: Check out repo

View File

@@ -30,7 +30,12 @@ env:
jobs:
send-purges:
if: ${{ github.repository == 'github/docs-internal' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
if: >-
${{
github.repository == 'github/docs-internal' &&
(github.event_name != 'workflow_run' ||
github.event.workflow_run.conclusion == 'success')
}}
runs-on: ubuntu-latest
steps:
- name: Check out repo