mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 17:42:29 +01:00
Use gh-describe to store git describe in environment
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -66,6 +66,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Git describe for shallow checkout
|
||||
id: ghd
|
||||
uses: proudust/gh-describe@v1
|
||||
- name: Update GA environment
|
||||
run: echo "OPENRCT2_DESCRIBE=${{ steps.ghd.outputs.describe }}" >> $GITHUB_ENV
|
||||
- name: Install MSVC problem matcher
|
||||
uses: ammaraskar/msvc-problem-matcher@master
|
||||
- name: Build OpenRCT2
|
||||
|
||||
@@ -14,7 +14,6 @@ fi
|
||||
echo -e "\033[0;36mSetting up environment for OpenRCT2...\033[0m"
|
||||
|
||||
# Get the build number (number of commits since last tag)
|
||||
export OPENRCT2_DESCRIBE=$(git describe HEAD)
|
||||
get_build_number()
|
||||
{
|
||||
local pattern='.+-([0-9]+)-.+'
|
||||
|
||||
Reference in New Issue
Block a user