-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (28 loc) · 1.01 KB
/
trello.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}
- uses: DfE-Digital/keyvault-yaml-secret@v1
id: keyvault-yaml-secret
with:
keyvault: ${{ secrets.KEY_VAULT}}
secret: SE-INFRA-SECRETS
key: TRELLO-KEY , TRELLO-TOKEN
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- 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 }}