Skip to content

Commit e5d91b1

Browse files
Remove duplicate arch, fix build id (#3)
* Fixes duplicated arch and fixes release number
1 parent 7384cb4 commit e5d91b1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
run: mvn -s ${{ github.workspace}}/settings.xml -f rpm.pom.xml -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= deploy
3838
env:
3939
GITHUB_TOKEN: ${{ github.token }}
40+
GITHUB_RUN_NUMBER: ${{ github.run_number }}
4041

4142
- name: Attach rpm as artifact
4243
uses: softprops/action-gh-release@v1

rpm.pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<packaging>rpm</packaging>
66
<modelVersion>4.0.0</modelVersion>
77
<artifactId>blf_02</artifactId>
8-
<version>${revision}${sha1}${changelist}.el7.x86_64</version>
8+
<version>${revision}${sha1}${changelist}.el7</version>
99
<name>blf_02</name>
1010
<description>blf_02</description>
1111
<groupId>com.teragrep</groupId>
@@ -45,7 +45,7 @@
4545
<summary>${project.groupId}-${project.artifactId}</summary>
4646
<name>${project.groupId}-${project.artifactId}</name>
4747
<version>${project.version}</version>
48-
<release>${env.BUILD_ID}</release>
48+
<release>${env.GITHUB_RUN_NUMBER}</release>
4949
<license>Proprietary</license>
5050
<distribution>Fail-Safe Log Management Suite</distribution>
5151
<vendor>https://fail-safe.net/</vendor>

0 commit comments

Comments
 (0)