Skip to content

Rejig teacher training adviser flow to allow for primary candidates to also get an adviser instead of stopping the flow #4594

Rejig teacher training adviser flow to allow for primary candidates to also get an adviser instead of stopping the flow

Rejig teacher training adviser flow to allow for primary candidates to also get an adviser instead of stopping the flow #4594

Workflow file for this run

name: Link Trello card
on:
pull_request:
types: [ opened , edited]
jobs:
attach-to-trello:
name: Link Trello card to this PR
runs-on: ubuntu-latest
if: "!contains( 'dependabot[bot] snyk-bot' , github.actor )"
steps:
- uses: Azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_AKS_REVIEW }}
- name: Fetch secrets from key vault
uses: azure/CLI@v1
id: keyvault-yaml-secret
with:
inlineScript: |
TRELLO_KEY=$(az keyvault secret show --name "TRELLO-KEY" --vault-name "${{ secrets.KEY_VAULT_AKS_REVIEW }}" --query "value" -o tsv)
echo "::add-mask::$TRELLO_KEY"
echo "TRELLO_KEY=$TRELLO_KEY" >> $GITHUB_OUTPUT
TRELLO_TOKEN=$(az keyvault secret show --name "TRELLO-TOKEN" --vault-name "${{ secrets.KEY_VAULT_AKS_REVIEW }}" --query "value" -o tsv)
echo "::add-mask::$TRELLO_TOKEN"
echo "TRELLO_TOKEN=$TRELLO_TOKEN" >> $GITHUB_OUTPUT
- name: Add Trello Comment
uses: DFE-Digital/github-actions/AddTrelloComment@master
with:
MESSAGE: ${{ github.event.pull_request.html_url }}
CARD: "${{ github.event.pull_request.body }}"
TRELLO-KEY: ${{ steps.keyvault-yaml-secret.outputs.TRELLO_KEY }}
TRELLO-TOKEN: ${{ steps.keyvault-yaml-secret.outputs.TRELLO_TOKEN }}