Skip to content

Commit

Permalink
Use --abbrev=0 in all build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnovak committed Dec 20, 2023
1 parent eb77b64 commit 7f81914
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Expand Up @@ -313,7 +313,7 @@ jobs:
set -x
git fetch --prune --unshallow
git fetch --all --tags --force
export VERSION=$(git describe --abbrev=5)
export VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Setup release build
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:
set +x
git fetch --unshallow
git fetch --all --tags --force
VERSION=$(git describe --abbrev=4)
VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
NEWEST_TAG=$(git describe --abbrev=0)
git log "$NEWEST_TAG..HEAD" > changelog-$VERSION.txt
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Expand Up @@ -237,7 +237,7 @@ jobs:
set -x
git fetch --prune --unshallow
git fetch --all --tags --force
export VERSION=$(git describe --abbrev=5)
export VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Setup and build release
Expand Down Expand Up @@ -280,7 +280,7 @@ jobs:
set -x
git fetch --prune --unshallow
git fetch --all --tags --force
export VERSION=$(git describe --abbrev=5)
export VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Install brew depedencies
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
set +x
git fetch --unshallow
git fetch --all --tags --force
VERSION=$(git describe --abbrev=4)
VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
NEWEST_TAG=$(git describe --abbrev=0)
git log "$NEWEST_TAG..HEAD" > changelog-$VERSION.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-msvc.yml
Expand Up @@ -158,7 +158,7 @@ jobs:
set -x
git fetch --prune --unshallow
git fetch --all --tags --force
export VERSION=$(git describe --abbrev=4)
export VERSION=$(git describe --abbrev=0)
# inject version based on vcs
sed -i "s|DOSBOX_DETAILED_VERSION \"git\"|DOSBOX_DETAILED_VERSION \"$VERSION\"|" src/platform/visualc/config.h
echo "VERSION=$VERSION" >> $GITHUB_ENV
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
set +x
git fetch --unshallow
git fetch --all --tags --force
VERSION=$(git describe --abbrev=4)
VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
NEWEST_TAG=$(git describe --abbrev=0)
git log "$NEWEST_TAG..HEAD" > changelog-$VERSION.txt
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/windows-msys2.yml
Expand Up @@ -277,7 +277,7 @@ jobs:
set -x
git fetch --prune --unshallow
git fetch --all --tags --force
export VERSION=$(git describe --abbrev=5)
export VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Inject package name
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:
"$PKG_RELEASE"
mv "${PKG_RELEASE}/dosbox.exe" "${PKG_RELEASE}/dosbox_with_debugger.exe"
install -DT "${BUILD_RELEASE_DIR}/dosbox.exe" "${PKG_RELEASE}/dosbox.exe"
echo "artifact_name=dosbox-staging-windows-x64-`git describe --abbrev=4`" >> $GITHUB_ENV
echo "artifact_name=dosbox-staging-windows-x64-`git describe --abbrev=0`" >> $GITHUB_ENV
echo "artifact_path=${{ github.workspace }}\msvc" >> $GITHUB_ENV
- name: Windows Defender AV Scan
Expand Down Expand Up @@ -376,9 +376,9 @@ jobs:
packageinfo="a development branch"
fi
mkdir out
echo "version_number=`git describe --tags --abbrev=4`" >> $GITHUB_ENV
echo "version_number=`git describe --tags --abbrev=0`" >> $GITHUB_ENV
sed -e "s|%PACKAGE_INFORMATION%|${packageinfo}|;s|%GITHUB_REPO%|${{ github.repository }}|" docs/README.template >out/setup_preamble.txt
sed -i "s|DOSBOX-STAGING-VERSION|`git describe --tags --abbrev=4`|" contrib/windows_installer/DOSBox-Staging-setup.iss
sed -i "s|DOSBOX-STAGING-VERSION|`git describe --tags --abbrev=0`|" contrib/windows_installer/DOSBox-Staging-setup.iss
echo @echo off >out/dosbox_with_console.bat
echo \"%~dp0\\dosbox.exe\" %* >>out/dosbox_with_console.bat
echo if errorlevel 1 pause >>out/dosbox_with_console.bat
Expand Down Expand Up @@ -438,7 +438,7 @@ jobs:
set +x
git fetch --unshallow
git fetch --all --tags --force
VERSION=$(git describe --abbrev=4)
VERSION=$(git describe --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
NEWEST_TAG=$(git describe --abbrev=0)
git log "$NEWEST_TAG..HEAD" > changelog-$VERSION.txt
Expand Down

0 comments on commit 7f81914

Please sign in to comment.