diff --git a/.github/workflows/notify-about-deployment.yml b/.github/workflows/notify-about-deployment.yml index 7e3a03e582..12b6c3cb86 100644 --- a/.github/workflows/notify-about-deployment.yml +++ b/.github/workflows/notify-about-deployment.yml @@ -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 diff --git a/.github/workflows/purge-fastly.yml b/.github/workflows/purge-fastly.yml index d615090796..e8278eed23 100644 --- a/.github/workflows/purge-fastly.yml +++ b/.github/workflows/purge-fastly.yml @@ -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