Bump the dev group across 1 directory with 3 updates #523
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v6 | |
| - uses: azure/login@v2 | |
| 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 | |
| run: | | |
| echo "Starting Azure devops pipeline \"Delete review app\"..." | |
| RUN_ID=$(az pipelines run \ | |
| --commit-id ${{ github.event.pull_request.head.sha }}\ | |
| --name "Delete review app"\ | |
| --org https://dev.azure.com/nhse-dtos \ | |
| --project dtos-manage-breast-screening \ | |
| --parameters commitSHA=${{ github.event.pull_request.head.sha }} prNumber=${{ github.event.pull_request.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@5060d4700a91de252c87eeddd2da026382d9298a | |
| 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 |