Skip to content

Commit

Permalink
Test that we can get the current guide version
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Feb 3, 2024
1 parent f36baf5 commit 519d210
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
branch: ${{ steps.check_step.outputs.branch }}
reponame: ${{ steps.check_step.outputs.reponame }}
tag: ${{ steps.check_step.outputs.tag }}
guideversion: ${{ steps.check_step.outputs.guideversion }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -31,6 +32,9 @@ jobs:
echo "Running in $reponame on $branch"
fi
echo "tag=$tag" >> $GITHUB_OUTPUT
raw=`cat properties.gradle | grep guideVersion | sed "s#['\"]#g"
guideversion=${raw##*=}
echo "guideversion=${raw##*=}" >> $GITHUB_OUTPUT
build-and-deploy:
name: Build xslTNG on ${{ matrix.os }}
Expand All @@ -47,6 +51,7 @@ jobs:
CI_PROJECT_REPONAME: ${{ needs.check_branch.outputs.reponame }}
CI_BRANCH: ${{ needs.check_branch.outputs.branch }}
CI_TAG: ${{ needs.check_branch.outputs.tag }}
GUIDE_VERSION: ${{ needs.check_branch.outputs.guideversion }}

strategy:
matrix:
Expand Down Expand Up @@ -135,9 +140,10 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
run: |
mkdir /tmp/guide
rsync -var guide/ /tmp/guide/
rsync -ar guide/ /tmp/guide/
rm -f /tmp/guide/*.html /tmp/guide/validated.xml
cp guide/index.html /tmp
echo "Building guide version $GUIDE_VERSION"
- name: Checkout the main branch on Linux
if: matrix.os == 'ubuntu-20.04'
Expand Down

0 comments on commit 519d210

Please sign in to comment.