-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (40 loc) · 1.18 KB
/
release.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: Release
on:
pull_request_target:
types:
- closed
branches:
- master
- "[2-9][0-9].[0-9][0-9].x"
paths-ignore:
- ".github/**"
- ".jira/**"
- "tests/**"
- ".deepsource.toml"
- ".veracode-exclusions"
- "README.md"
- "sonar-project.properties"
pull_request:
paths:
- ".github/workflows/release.yml"
workflow_dispatch:
jobs:
release:
#if: github.event.pull_request.merged == true && (github.base_ref == 'master' || github.base_ref == '[2-9][0-9].[0-9][0-9].x')
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Release
id: release
uses: ./.github/actions/release
with:
github_ref_name: ${{ github.head_ref || github.ref_name }}
jira_project_id: ${{ secrets.JIRA_PROJECT_ID }}
jira_token: ${{ secrets.JIRA_API_TOKEN }}
jira_webhook_url: ${{ secrets.JIRA_RELEASE_WEBHOOK }}
jira_user_email: ${{ secrets.XRAY_JIRA_USER_EMAIL }}
jira_api_token: ${{ secrets.XRAY_JIRA_TOKEN }}