Skip to content

Commit

Permalink
feat: use reusable workflow for release builder
Browse files Browse the repository at this point in the history
  • Loading branch information
owen2345 committed Dec 28, 2022
1 parent 5c89058 commit 988181b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
name: Create release from tag
on:
# Any pull request merged into master (hotfixes, releases)
# should publish the corresponding github release + git tag
push:
branches:
- main
- master

workflow_dispatch: # build a new release manually (create release branch pointing to master branch)
inputs:
version_name:
# Edit release_builder.json#base_branches to support other branches
description: 'Release version name, sample: 1.0.0 (Only "develop" branch is supported)'
required: true

name: Create Release
tags: # Create a release once a git tag is published
- '*'

jobs:
release-builder:
uses: owen2345/reusable-ci-cd-actions/.github/workflows/release_builder.yml@main
uses: owen2345/reusable-ci-cd-actions/.github/workflows/release_builder_from_tag.yml@main
with:
commit_mode: true
create_release_pr: ${{ github.event.inputs && github.event.inputs.version_name || '' }}
commit_mode: true # If true, then fetches all commit titles from all changes. If false, then fetches only the PR titles from all changes.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
pub_sub_model_sync (1.6.4)
pub_sub_model_sync (1.7.0)
rails

GEM
Expand Down

0 comments on commit 988181b

Please sign in to comment.