-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (46 loc) · 1.45 KB
/
release-notes.yml
File metadata and controls
46 lines (46 loc) · 1.45 KB
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
44
45
46
on:
workflow_call:
inputs:
parent-page-id:
description: "The parent page to create the release notes."
type: string
required: true
jira-domain:
description: "The JIRA domain to tag the release."
type: string
required: true
version:
description: "The version to tag the release."
type: string
required: false
secrets:
jira-username:
description: "The JIRA username to tag the release."
required: true
jira-api-token:
description: "The JIRA API token to tag the release."
required: true
jobs:
notify-release:
name: Notify Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Version
run: |
if [ -z "${{ inputs.version }}" ]; then
echo "version=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV
else
echo "version=${{ inputs.version }}" >> $GITHUB_ENV
fi
- name: Create Confluence Release Notes
uses: VirdocsSoftware/github-actions/.github/actions/confluence-release-notes@main
with:
version: ${{ env.version }}
parent-page: ${{ inputs.parent-page-id }}
jira-username: ${{ secrets.jira-username }}
jira-domain: ${{ inputs.jira-domain }}
jira-api-token: ${{ secrets.jira-api-token }}