Skip to content

Commit

Permalink
Fix publish actions
Browse files Browse the repository at this point in the history
Set 0.9.0 version

Fix action
  • Loading branch information
KirillKurdyukov committed Jan 10, 2024
1 parent 0bb163b commit 8ffbe43
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-hibernate-dialect-v5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
if: endsWith(env.HIBERNATE_DIALECT_VERSION, 'SNAPSHOT')
uses: actions/github-script@v6
with:
script: core.setFailed('SNAPSHOT version can''t be published')
script: core.setFailed('SNAPSHOT version cannot be published')

- name: Fail workflow if version is not equal to tag name
if: format('v{0}', env.HIBERNATE_DIALECT_VERSION) != github.ref_name
if: format('hibernate-ydb-v5/v{0}', env.HIBERNATE_DIALECT_VERSION) != github.ref_name
uses: actions/github-script@v6
with:
script: core.setFailed('Release name must be equal to project version')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-hibernate-dialect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
if: endsWith(env.HIBERNATE_DIALECT_VERSION, 'SNAPSHOT')
uses: actions/github-script@v6
with:
script: core.setFailed('SNAPSHOT version can''t be published')
script: core.setFailed('SNAPSHOT version cannot be published')

- name: Fail workflow if version is not equal to tag name
if: format('v{0}', env.HIBERNATE_DIALECT_VERSION) != github.ref_name
if: format('hibernate-ydb/v{0}', env.HIBERNATE_DIALECT_VERSION) != github.ref_name
uses: actions/github-script@v6
with:
script: core.setFailed('Release name must be equal to project version')
Expand Down
2 changes: 1 addition & 1 deletion hibernate-dialect-v5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.ydb.dialects</groupId>
<artifactId>hibernate-ydb-dialect-v5</artifactId>
<version>0.9.0-SNAPSHOT</version>
<version>0.9.0</version>

<name>Hibernate V5 YDB Dialect</name>
<description>Support Hibernate version 5 YDB (YQL) Dialect</description>
Expand Down
2 changes: 1 addition & 1 deletion hibernate-dialect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.ydb.dialects</groupId>
<artifactId>hibernate-ydb-dialect</artifactId>
<version>0.9.0-SNAPSHOT</version>
<version>0.9.0</version>

<packaging>jar</packaging>

Expand Down

0 comments on commit 8ffbe43

Please sign in to comment.