mirror of https://github.com/PCSX2/pcsx2.git
CI/Linux: Hopefully fix Flathub release versioning
This commit is contained in:
parent
b431f1dc0d
commit
9d2d8c0713
|
@ -49,6 +49,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
# Hackity hack. When running the workflow on a schedule, we don't have the tag,
|
||||||
|
# it doesn't fetch tags, therefore we don't get a version. So grab them manually.
|
||||||
|
- name: Fetch tags
|
||||||
|
if: inputs.publish == true
|
||||||
|
id: fetch-tags
|
||||||
|
run: git fetch --tags --no-recurse-submodules
|
||||||
|
|
||||||
- name: Prepare Artifact Metadata
|
- name: Prepare Artifact Metadata
|
||||||
id: artifact-metadata
|
id: artifact-metadata
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -13,7 +13,11 @@ GIT_VERSION=$(git tag --points-at HEAD)
|
||||||
GIT_HASH=$(git rev-parse HEAD)
|
GIT_HASH=$(git rev-parse HEAD)
|
||||||
|
|
||||||
if [[ "${GIT_VERSION}" == "" ]]; then
|
if [[ "${GIT_VERSION}" == "" ]]; then
|
||||||
|
# In the odd event that we run this script before the release gets tagged.
|
||||||
|
GIT_VERSION=$(git describe --tags)
|
||||||
|
if [[ "${GIT_VERSION}" == "" ]]; then
|
||||||
GIT_VERSION=$(git rev-parse HEAD)
|
GIT_VERSION=$(git rev-parse HEAD)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "GIT_DATE: ${GIT_DATE}"
|
echo "GIT_DATE: ${GIT_DATE}"
|
||||||
|
|
Loading…
Reference in New Issue