Skip to content

Bump postcss from 8.5.8 to 8.5.12 #1031

Bump postcss from 8.5.8 to 8.5.12

Bump postcss from 8.5.8 to 8.5.12 #1031

name: Delete review app
on:
pull_request:
types: [closed]
jobs:
destroy:
if: contains(github.event.pull_request.labels.*.name, 'deploy')
name: Delete review app pr-${{ github.event.pull_request.number }}
permissions:
id-token: write
pull-requests: write
runs-on: ubuntu-latest
environment: review
# Prevent concurrent jobs on the same environment and between deploy and delete workflows
concurrency: deploy-review-${{ github.event.pull_request.number }}
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Call delete review app pipeline
env:
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
echo "Starting Azure devops pipeline \"Delete review app\"..."
RUN_ID=$(az pipelines run \
--commit-id "${COMMIT_SHA}"\
--name "Delete review app"\
--org https://dev.azure.com/nhse-dtos \
--project dtos-manage-breast-screening \
--parameters commitSHA="${COMMIT_SHA}" prNumber="${PR_NUMBER}" \
--output tsv --query id)
echo "See pipeline run in Azure devops: https://dev.azure.com/nhse-dtos/dtos-manage-breast-screening/_build/results?buildId=${RUN_ID}&view=results"
scripts/bash/wait_ado_pipeline.sh "$RUN_ID" https://dev.azure.com/nhse-dtos dtos-manage-breast-screening
- name: Post URL to PR comments
uses: marocchino/sticky-pull-request-comment@d4d6b0936434b21bc8345ad45a440c5f7d2c40ff
with:
message: |
The review app at this URL has been deleted:
https://pr-${{ github.event.pull_request.number }}.manage-breast-screening.non-live.screening.nhs.uk