Skip to content

Commit 1ffcb0b

Browse files
Fix release workflow to publish tags
1 parent 6bc2f5b commit 1ffcb0b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/release-components.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ jobs:
8787
sauron-service/target/*-sources.jar?(.)*
8888
sauron-service/target/*-javadoc.jar?(.)*
8989
90+
- name: Extract version
91+
id: extractversion
92+
run: echo "::set-output name=version::$(cut -c16- <<< "${{ steps.previoustag.outputs.tag }}")"
93+
9094
- name: Publish to Registry
9195
if: steps.changes.outputs.src == 'true' && steps.changes.outputs.sauron-service == 'true'
92-
pre: echo ::save-state name=RELEASE_VERSION::$(echo ${${{ steps.previoustag.outputs.tag }}:15})
9396
uses: elgohr/Publish-Docker-Github-Action@3.02
9497
with:
9598
name: freenowtech/sauron/sauron-service
@@ -98,4 +101,4 @@ jobs:
98101
default_branch: main
99102
workdir: sauron-service/
100103
registry: ghcr.io
101-
tags: "latest,${{ env.STATE_RELEASE_VERSION }}"
104+
tags: "latest,${{ steps.extractversion.outputs.version }}"

sauron-service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,4 @@
267267
</plugin>
268268
</plugins>
269269
</build>
270-
</project>
270+
</project>

0 commit comments

Comments
 (0)