-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (40 loc) · 1.59 KB
/
handle-contribution.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
33
34
35
36
37
38
39
40
41
42
43
name: Handle contribution
on:
pull_request:
types: [opened, reopened, ready_for_review]
branches:
- master
jobs:
call-notify-jira-about-contribution:
if: ${{ github.event.pull_request.head.ref != 'changeset-release/master' }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
actions: write
issues: write
pull-requests: write
name: Call notify jira about contribution
steps:
- name: GSM Secrets
id: secrets_manager
uses: toptal/davinci-github-actions/[email protected]
with:
workload_identity_provider: ${{ secrets.IDENTITY_POOL }}
service_account: ${{ secrets.SA_IDENTITY_POOL }}
secrets_name: |-
PICASSO_JIRA_AUTOMATION_HOOK_FOR_NEW_CONTRIBUTION:toptal-ci/PICASSO_JIRA_AUTOMATION_HOOK_FOR_NEW_CONTRIBUTION
TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN
- name: Parse secrets
id: parse_secrets
uses: toptal/davinci-github-actions/[email protected]
with:
json: ${{ steps.secrets_manager.outputs.secrets }}
- uses: toptal/davinci-github-actions/[email protected]
with:
team: frontend-experience-eng
repo: ${{ github.event.repository.name }}
pull-number: ${{ github.event.pull_request.number}}
jira-hook: ${{ steps.parse_secrets.outputs.PICASSO_JIRA_AUTOMATION_HOOK_FOR_NEW_CONTRIBUTION }}
github-token: ${{ steps.parse_secrets.outputs.TOPTAL_DEVBOT_TOKEN }}
should-notify-about-major-dependency-updates: true