Skip to content

Commit c70bcb8

Browse files
committed
test reusable release workflow
1 parent 0b406ad commit c70bcb8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Newfold Prepare Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
level:
7+
description: The level of release to be used.
8+
type: choice
9+
options:
10+
- patch
11+
- minor
12+
- major
13+
default: 'patch'
14+
required: true
15+
16+
jobs:
17+
18+
# This job is used to extract the branch name from the pull request or branch.
19+
setup:
20+
name: Setup
21+
runs-on: ubuntu-latest
22+
outputs:
23+
branch: ${{ steps.extract_branch.outputs.branch }}
24+
steps:
25+
- name: Extract branch name
26+
shell: bash
27+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
28+
id: extract_branch
29+
30+
# This job runs the newfold module-prep-release workflow for this module.
31+
prep-release:
32+
name: Prepare Release
33+
needs: setup
34+
uses: newfold-labs/workflows/.github/workflows/module-prep-release.yml@add/preprelease
35+
with:
36+
module-repo: ${{ github.repository }}
37+
module-branch: ${{ needs.setup.outputs.branch }}
38+
level: ${{ inputs.level }}
39+
secrets: inherit

0 commit comments

Comments
 (0)