Skip to content

Commit 988181b

Browse files
committed
feat: use reusable workflow for release builder
1 parent 5c89058 commit 988181b

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
1+
name: Create release from tag
12
on:
2-
# Any pull request merged into master (hotfixes, releases)
3-
# should publish the corresponding github release + git tag
43
push:
5-
branches:
6-
- main
7-
- master
8-
9-
workflow_dispatch: # build a new release manually (create release branch pointing to master branch)
10-
inputs:
11-
version_name:
12-
# Edit release_builder.json#base_branches to support other branches
13-
description: 'Release version name, sample: 1.0.0 (Only "develop" branch is supported)'
14-
required: true
15-
16-
name: Create Release
4+
tags: # Create a release once a git tag is published
5+
- '*'
176

187
jobs:
198
release-builder:
20-
uses: owen2345/reusable-ci-cd-actions/.github/workflows/release_builder.yml@main
9+
uses: owen2345/reusable-ci-cd-actions/.github/workflows/release_builder_from_tag.yml@main
2110
with:
22-
commit_mode: true
23-
create_release_pr: ${{ github.event.inputs && github.event.inputs.version_name || '' }}
11+
commit_mode: true # If true, then fetches all commit titles from all changes. If false, then fetches only the PR titles from all changes.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
pub_sub_model_sync (1.6.4)
4+
pub_sub_model_sync (1.7.0)
55
rails
66

77
GEM

0 commit comments

Comments
 (0)