Skip to content

Commit

Permalink
Github action to build docs uses orgs variable (with default value)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezg committed Mar 11, 2024
1 parent d9a5855 commit bcb168d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
paths:
- 'docs/**'

env:
VALE_VERSION: ${{ vars.LIBRARY_VALE_VERSION || '3.3.0' }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -28,14 +31,15 @@ jobs:

- name: Install vale
run: |
wget https://github.com/errata-ai/vale/releases/download/v2.23.0/vale_2.23.0_Linux_64-bit.tar.gz
sudo tar -xvzf vale_2.23.0_Linux_64-bit.tar.gz -C /usr/local/bin vale
wget "https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
sudo tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C /usr/local/bin vale
- name: Generate Site
run: |
cd docs/_playbook/
npm install
export GIT_CREDENTIALS='https://axoniq-devops:${{ secrets.LIBRARY_DEVBOT_TOKEN }}@github.com'
echo 'Using' `vale -v`
npx antora playbook.yaml
- name: Notify AxonIQ Library (if a push to a tracked branch)
Expand Down

0 comments on commit bcb168d

Please sign in to comment.