-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (60 loc) · 2.11 KB
/
Copy pathrelease-preparation.yml
File metadata and controls
64 lines (60 loc) · 2.11 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release preparation
run-name: Application Release Branch Preparation${{ inputs.dispatch_id != '' && format(' [{0}]', inputs.dispatch_id) || '' }}
on:
workflow_dispatch:
inputs:
previous_release_branch:
description: 'Previous release branch (e.g., R1-2024)'
required: true
type: string
new_release_branch:
description: 'New release branch (e.g., R2-2024)'
required: true
type: string
use_snapshot_fallback:
description: 'Use snapshot branch as fallback if previous release branch not found'
required: false
type: boolean
default: false
use_snapshot_version:
description: 'Use snapshot version as a base version'
required: false
type: boolean
default: false
need_pr:
description: 'Require PR for version updates on this branch'
required: false
type: boolean
default: true
prerelease_mode:
description: 'Module version constraints: "false" (release only), "true" (include snapshots), "only" (snapshots only)'
required: false
type: string
default: 'false'
dry_run:
description: 'Perform dry run without making changes'
required: false
type: boolean
default: false
dispatch_id:
description: 'Unique identifier for workflow tracking'
required: false
type: string
default: ''
permissions:
contents: write
jobs:
prepare-app-release:
name: Prepare Application Release
uses: folio-org/kitfox-github/.github/workflows/release-preparation.yml@master
with:
app_name: ${{ github.event.repository.name }}
repo: ${{ github.repository }}
previous_release_branch: ${{ inputs.previous_release_branch }}
new_release_branch: ${{ inputs.new_release_branch }}
use_snapshot_fallback: ${{ inputs.use_snapshot_fallback }}
use_snapshot_version: ${{ inputs.use_snapshot_version }}
dry_run: ${{ inputs.dry_run }}
need_pr: ${{ inputs.need_pr }}
prerelease_mode: ${{ inputs.prerelease_mode }}
secrets: inherit