Updated internships list #5738
This file contains 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: 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@v2 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS_REVIEW }} | |
- name: Fetch secrets from key vault | |
uses: azure/CLI@v2 | |
id: keyvault-yaml-secret | |
with: | |
inlineScript: | | |
TRELLO_KEY=$(az keyvault secret show --name "TRELLO-KEY" --vault-name "${{ secrets.KEY_VAULT_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_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 }} |