mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-07-21 14:04:29 +02:00
Update validate_site.yml
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
#
|
||||||
|
# Validates Pull requests targeting the wiki branch
|
||||||
|
# to ensure that the site can be build successfully
|
||||||
|
# without broken links, navigation, etc.
|
||||||
|
#
|
||||||
name: "Validate Wiki Build"
|
name: "Validate Wiki Build"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -14,7 +19,6 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
issues: write
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUN_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}"
|
RUN_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}"
|
||||||
@@ -28,26 +32,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: "${{ github.event.pull_request.head.sha }}"
|
ref: "${{ github.event.pull_request.head.sha }}"
|
||||||
|
persist-credentials: false
|
||||||
- name: "Setup Python 3.x"
|
- name: "Setup Python 3.x"
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
run: "pip install -r requirements.txt"
|
run: "python -m pip install mkdocs-material"
|
||||||
- name: "Build Site"
|
- name: "Build Site"
|
||||||
run: "mkdocs build --strict"
|
run: "mkdocs build --strict"
|
||||||
commentOnFail:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ failure() }}
|
|
||||||
steps:
|
|
||||||
- name: "Create Comment"
|
|
||||||
uses: peter-evans/create-or-update-comment@v5
|
|
||||||
with:
|
|
||||||
body: |-
|
|
||||||
## Wiki Build failure
|
|
||||||
|
|
||||||
Something went wrong while creating a test-build of the Wiki for this Pull request.
|
|
||||||
Please check the [Workflow Logs](${{ env.RUN_URL }}) for any errors.
|
|
||||||
issue-number: "${{ github.event.pull_request.number }}"
|
|
||||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
edit-mode: replace
|
|
||||||
|
|||||||
Reference in New Issue
Block a user