build(deps): bump marocchino/sticky-pull-request-comment from 8ac02941f254c53fbda0cf44288785e1367e13bf to 9c40848920de7cd32a71773ba792d8b04f03bf7a #34
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 | |
| concurrency: deploy-review-${{ github.ref }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - 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) | |
| 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@9c40848920de7cd32a71773ba792d8b04f03bf7a | |
| 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 |