Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Update to use enviorment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Dec 20, 2023
1 parent c04f8c3 commit b952fb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
id: check_changes
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E 'mkdocs.yml|docs/'; then
echo "::set-output name=changes::true"
echo "CHANGES=true" >> $GITHUB_ENV
else
echo "::set-output name=changes::false"
echo "CHANGES=false" >> $GITHUB_ENV
fi
- name: Install dependencies (if needed)
if: steps.check_changes.outputs.changes == 'true'
if: env.CHANGES == 'true'
run: pip install mkdocs-material

- name: Deploy (if needed)
if: steps.check_changes.outputs.changes == 'true'
if: env.CHANGES == 'true'
run: mkdocs gh-deploy --force

0 comments on commit b952fb2

Please sign in to comment.