Skip to content

Commit

Permalink
move output check to run step
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Aug 22, 2024
1 parent 5f8cd14 commit 6d98975
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/doctum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ jobs:
- name: Run Doctum to Generate Documentation
run: |
php doctum.phar update doctum-config.php --ignore-parse-errors
- if: inputs.default_version
name: Redirect Index to Latest Version
run: |
if [ ! -d .build ]; then
echo "Action did not generate any documentation. Did you forget to provide a default_version or tag_pattern?";
exit 1;
fi
- if: inputs.default_version
name: Redirect Index to Latest Version
run: |
cat << EOF > .build/index.html
<meta http-equiv='refresh' content='0;url=/${{ github.event.repository.name }}/${{ inputs.default_version }}'>
EOF
Expand Down

0 comments on commit 6d98975

Please sign in to comment.