Use new github action syntax

This commit is contained in:
Mike Farah 2022-11-14 17:40:12 +11:00
parent 67864ffdab
commit 9edff1f22c

View File

@ -18,11 +18,10 @@ jobs:
id: gen-man-page-md id: gen-man-page-md
run: | run: |
./scripts/generate-man-page-md.sh ./scripts/generate-man-page-md.sh
echo "::set-output name=man-page-md::man.md"
- name: Get the version - name: Get the version
id: get_version id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF##*/} run: echo "VERSION=${GITHUB_REF##*/}" >> "${GITHUB_OUTPUT}"
- name: Generate man page - name: Generate man page
uses: docker://pandoc/core:2.14.2 uses: docker://pandoc/core:2.14.2
@ -36,7 +35,7 @@ jobs:
--variable=header:"yq (https://github.com/mikefarah/yq/) version ${{ steps.get_version.outputs.VERSION }}" --variable=header:"yq (https://github.com/mikefarah/yq/) version ${{ steps.get_version.outputs.VERSION }}"
--variable=author:"Mike Farah" --variable=author:"Mike Farah"
--output=yq.1 --output=yq.1
${{ steps.gen-man-page-md.outputs.man-page-md }} man.md
- name: Cross compile - name: Cross compile
run: | run: |