diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 923154b639..cae21755c4 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -7,7 +7,7 @@ on: jobs: - create-source-tarball: + tarball: runs-on: ubuntu-latest outputs: snapshot-version: ${{ steps.snapshot-version.outputs.SNAPSHOT_VERSION }} @@ -39,7 +39,7 @@ jobs: path: dbld/build/*.tar.* # create-packages: - # needs: create-source-tarball + # needs: tarball # uses: ./.github/workflows/create-packages.yml # with: # source-tarball-artifact-name: source-tarball @@ -90,7 +90,7 @@ jobs: build-and-test: runs-on: ubuntu-latest needs: - - create-source-tarball + - tarball - axosyslog-modules steps: - name: Checkout source @@ -129,7 +129,7 @@ jobs: publish-image: if: github.ref == 'refs/heads/main' uses: ./.github/workflows/axosyslog-docker.yml - needs: [create-source-tarball, build-and-test, axosyslog-modules] + needs: [tarball, build-and-test, axosyslog-modules] with: pkg-type: nightly tarball-artifact: source-tarball diff --git a/scripts/version.sh b/scripts/version.sh index e4a6bed2a8..0779e0cd2e 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -29,7 +29,7 @@ cd $BASEDIR/../ if [ "$VERSION" != "" ]; then echo $VERSION | tr -d '\n' -elif [ -d .git ] && GIT_VERSION=$(git describe --tags --dirty --abbrev=7); then +elif [ -d .git ] && GIT_VERSION=$(git describe --match 'axosyslog-[0-9]*' --tags --dirty --abbrev=7); then echo $GIT_VERSION | sed 's/^axosyslog-//' | tr '-' '.' | tr -d '\n' else cat VERSION.txt | tr -d '\n'