diff --git a/.github/workflows/azure-preview-env-deploy.yml b/.github/workflows/azure-preview-env-deploy.yml index eb0d0ef1531d..3cd169742e0b 100644 --- a/.github/workflows/azure-preview-env-deploy.yml +++ b/.github/workflows/azure-preview-env-deploy.yml @@ -34,7 +34,7 @@ permissions: # This allows one deploy workflow to interrupt another concurrency: - group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}' + group: 'preview-env @ ${{ github.head_ref || github.run_id }}' cancel-in-progress: true jobs: diff --git a/.github/workflows/azure-preview-env-destroy.yml b/.github/workflows/azure-preview-env-destroy.yml index 94463d846fbf..1c8e1c8e32ef 100644 --- a/.github/workflows/azure-preview-env-destroy.yml +++ b/.github/workflows/azure-preview-env-destroy.yml @@ -19,6 +19,11 @@ on: permissions: contents: read +# This allows one deploy workflow to interrupt another +concurrency: + group: 'preview-env @ ${{ github.head_ref || github.run_id }}' + cancel-in-progress: true + jobs: destory-azure-preview-env: name: Destroy diff --git a/middleware/index.js b/middleware/index.js index 1d6326affaa6..56e172358e37 100644 --- a/middleware/index.js +++ b/middleware/index.js @@ -76,7 +76,7 @@ const asyncMiddleware = (fn) => (req, res, next) => { } // The IP address that Fastly regards as the true client making the request w/ fallback to req.ip -morgan.token('client-ip', (req) => req.headers['Fastly-Client-IP'] || req.ip) +morgan.token('client-ip', (req) => req.headers['fastly-client-ip'] || req.ip) const productionLogFormat = `:client-ip - ":method :url" :status - :response-time ms` export default function (app) {