Skip to content

fixed pds unhandled exception #47

fixed pds unhandled exception

fixed pds unhandled exception #47

name: Teardown
on:
pull_request:
types: [closed]
jobs:
build:
name: Call Azure Pipeline
runs-on: ubuntu-latest
steps:
- name: Get Access Token
id: get-access-token
run: |
echo "ACCESS_TOKEN"=$(curl 'https://app.vssps.visualstudio.com/oauth2/token' --data "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_assertion=${{ secrets.AZURE_DEVOPS_CLIENT_SECRET }}&grant_type=refresh_token&assertion=${{ secrets.AZURE_DEVOPS_REFRESH_TOKEN }}&redirect_uri=https://localhost:1337/callback" | jq -r '.access_token') >> $GITHUB_OUTPUT
- name: Azure Pipelines Action
uses: Azure/pipelines@v1.2
with:
azure-devops-project-url: 'https://dev.azure.com/NHSD-APIM/API%20Platform'
azure-pipeline-name: 'gp-connect-user-permissions-pr-teardown'
azure-pipeline-variables: '{ "action_pr_number": "${{ github.event.pull_request.number }}" }'
azure-devops-token: ${{ steps.get-access-token.outputs.ACCESS_TOKEN }}