Skip to content

Commit 2c27330

Browse files
use version instead of version.txt
1 parent 7567aef commit 2c27330

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build-rpm-packages-aarch64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ jobs:
124124
id: version
125125
run: |
126126
set -eux
127-
VERSION=$(cat version.txt)
127+
VERSION=$(cat version)
128128
echo "version=${VERSION}" >> $GITHUB_OUTPUT
129129
130130
# Calculate snapshot version
131-
versionhash=$(git log -n1 --pretty=format:%h version.txt)
131+
versionhash=$(git log -n1 --pretty=format:%h version)
132132
numcommits=$(git rev-list ${versionhash}..HEAD --count)
133133
SNAPSHOT="$(date +%Y%m%d).${numcommits}"
134134
echo "snapshot=${SNAPSHOT}" >> $GITHUB_OUTPUT

.github/workflows/build-rpm-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ jobs:
118118
id: version
119119
run: |
120120
set -eux
121-
VERSION=$(cat version.txt)
121+
VERSION=$(cat version)
122122
echo "version=${VERSION}" >> $GITHUB_OUTPUT
123123
git config --global --add safe.directory /__w/zoneminder/zoneminder
124124
125125
# Calculate snapshot version
126-
versionhash=$(git log -n1 --pretty=format:%h version.txt)
126+
versionhash=$(git log -n1 --pretty=format:%h version)
127127
numcommits=$(git rev-list ${versionhash}..HEAD --count)
128128
SNAPSHOT="$(date +%Y%m%d).${numcommits}"
129129
echo "snapshot=${SNAPSHOT}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)