Update Fastly workflow to purge after a successful Moda prod deploy (#53781)
This commit is contained in:
@@ -5,9 +5,6 @@ name: Azure Production - Build and Deploy
|
||||
# **Who does it impact**: All contributors.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
9
.github/workflows/purge-fastly.yml
vendored
9
.github/workflows/purge-fastly.yml
vendored
@@ -5,6 +5,7 @@ name: Purge Fastly
|
||||
# **Who does it impact**: Writers and engineers.
|
||||
|
||||
on:
|
||||
deployment_status:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
nuke_all:
|
||||
@@ -16,9 +17,6 @@ on:
|
||||
description: "Comma separated languages. E.g. 'en,ja, es' (defaults to all)"
|
||||
required: false
|
||||
default: ''
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -29,11 +27,12 @@ env:
|
||||
|
||||
jobs:
|
||||
send-purges:
|
||||
# Run when workflow_dispatch is the event (manual) or when deployment_status is the event (automatic) and it's a successful production deploy
|
||||
if: >-
|
||||
${{
|
||||
github.repository == 'github/docs-internal' &&
|
||||
(github.event_name != 'workflow_run' ||
|
||||
github.event.workflow_run.conclusion == 'success')
|
||||
(github.event_name != 'deployment_status' ||
|
||||
github.event.deployment_status.state == 'success' && github.event.deployment_status.environment == 'production')
|
||||
}}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user