-
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (69 loc) · 2.38 KB
/
release-manager.yml
File metadata and controls
74 lines (69 loc) · 2.38 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
65
66
67
68
69
70
71
72
73
74
####################################################################
# release-manager.yml
####################################################################
# Ragdata's Release Manager Reusable Workflow
#
# File: release-manager.yml
# Version: 1.0
# Author: Ragdata
# Date: 27/07/2024
# License: MIT License
# Copyright: Copyright © 2024 Redeyed Technologies
####################################################################
name: Release Manager - Reusable
on:
# Allows this workflow to be called by other workflows
workflow_call:
inputs:
version:
description: "Release Version"
required: false
type: string
type:
description: "Bump Type"
required: false
type: string
branch:
description: "Branch to create release from"
required: false
type: string
pre_release:
description: "Pre-release?"
required: false
type: boolean
default: false
draft:
description: "Draft release?"
required: false
type: boolean
default: false
secrets:
token:
required: true
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
manage_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
########################################################
# Checkout Repository
########################################################
- name: Checkout Repository
uses: actions/checkout@v4
########################################################
# Manage Release
########################################################
- name: Manage Release
uses: ragdata/release-manager.action@develop
with:
version: ${{ inputs.version }}
type: ${{ inputs.type }}
branch: ${{ inputs.branch }}
pre_release: ${{ inputs.pre_release }}
draft: ${{ inputs.draft }}
env:
GITHUB_TOKEN: ${{ secrets.token }}