From 8a1b6488683ef2adcc9e96d1c7d47d4af1484d16 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Thu, 21 Oct 2021 19:55:52 +1100 Subject: [PATCH] Man page release workflow wip --- .github/workflows/release-test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 0fc1166e..d98e5d9d 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -18,6 +18,10 @@ jobs: ./scripts/generate-man-page-md.sh echo "::set-output name=man-page-md::man.md" + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF##*/} + - name: Generate man page uses: docker://pandoc/core:2.14.2 id: gen-man-page @@ -27,7 +31,7 @@ jobs: --to man --variable=title:"YQ" --variable=section:"1" - --variable=header:"yq (https://github.com/mikefarah/yq/) version ${GITHUB_REF##*/}" + --variable=header:"yq (https://github.com/mikefarah/yq/) version ${{ steps.get_version.outputs.VERSION }}" --variable=author:"Mike Farah" --output=yq.1 ${{ steps.gen-man-page-md.outputs.man-page-md }}