chore: Fix mkdocs major version issue

Includes an update to set-output as that will be deprecated in the future
This commit is contained in:
Joachim Van Herwegen 2022-12-12 11:45:49 +01:00
parent 1441ef9d25
commit 84c532ba96

View File

@ -19,7 +19,7 @@ jobs:
# or a push to main to update the latest documentation. # or a push to main to update the latest documentation.
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
major: ${{ steps.tagged_version.outputs.major || steps.current_version.ouputs.major }} major: ${{ steps.tagged_version.outputs.major || steps.current_version.outputs.major }}
steps: steps:
- uses: actions/checkout@v3.1.0 - uses: actions/checkout@v3.1.0
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
@ -37,7 +37,7 @@ jobs:
id: current_version id: current_version
run: | run: |
VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)') VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)')
echo "::set-output name=major::$VERSION" echo "major=$VERSION" >> $GITHUB_OUTPUT
mkdocs: mkdocs:
runs-on: ubuntu-latest runs-on: ubuntu-latest