Broken docs build

This commit is contained in:
Dave Syer
2025-06-06 17:20:30 +01:00
parent b1c36cd559
commit fcd70ee4e3

View File

@@ -27,10 +27,9 @@ jobs:
cache: maven
- name: Set up refname build
if: github.event.inputs.build-refname
env:
BUILD_REFNAME=${{ github.event.inputs.build-refname }}
run: |
git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY "$BUILD_REFNAME"
export BUILD_REFNAME=${{ github.event.inputs.build-refname }}
echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV
export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)")
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV