-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Updated github actions workflow for dockerhub tag generation
- Loading branch information
1 parent
b933276
commit 47e6ea9
Showing
4 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 'Extract version' | ||
description: 'Split semver version into major, minor and patch (and version).' | ||
inputs: | ||
version: | ||
description: 'Version as string' | ||
required: true | ||
outputs: | ||
version: | ||
description: "Full version" | ||
value: ${{ steps.match.outputs.group1 }} | ||
major: | ||
description: "Major version" | ||
value: ${{ steps.match.outputs.group2 }} | ||
minor: | ||
description: "Minor version" | ||
value: ${{ steps.match.outputs.group3 }} | ||
patch: | ||
description: "Patch version" | ||
value: ${{ steps.match.outputs.group4 }} | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: echo "${{ inputs.version }}" | ||
shell: bash | ||
- name: Match Semantic Version | ||
uses: actions-ecosystem/action-regex-match@v2 | ||
id: match | ||
with: | ||
text: ${{ inputs.version }} | ||
regex: '^v?(?<version>(?<major>[0-9]+).(?<minor>[0-9]+).(?<patch>[0-9]+))$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.11.0-locally-modified | ||
1.11.4-locally-modified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters