Skip to content

Commit

Permalink
Add ability to adjust semver pattern base on version type
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed May 2, 2024
1 parent 8b0aa2c commit 6af04df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Build
name: "Build"

on:
workflow_call:
inputs:
version:
type: string
required: true
semver-pattern:
type: string
required: false
default: "{{version}}"

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
matrix: ${{fromJson(needs.generate-canonical.outputs.matrix)}}
with:
version: ${{ matrix.releases }}
semver-pattern: "{{major}}.{{minor}}"
secrets: inherit

versioned:
Expand Down

0 comments on commit 6af04df

Please sign in to comment.